The RUN CHASE: A Challenge for the C Programmer in U...

C

CVS

In a game of cricket,

1. Assume you can score exactly as you want on each ball.

2. Single/Double/Triple/Four/Six are the options available to you on
each ball.(no extras)

3. RISK is defined as the square of the score on each ball.

* * * *
Write a program that accepts:-
a. Target runs to score (N)
b. No. of balls to score it in (x)

and prints the runs to score on each ball.

Remember U have to ACHIEVE the target with MINIMUM RISK possible.

For detailed problem statement and sample output plz refer
http://2600hertz.wordpress.com/2010/04/04/ipl-the-run-chase/

Lets C who comes first... ;-)
Good Luck!!
 
D

Dr Malcolm McLean

In a game of cricket,
[Optimisation problem: looks like linear programming.]

Yeu need comp.programing for this. Whilst a solution can certainly be
implemented in C, the problem itself has nothing to do with the
language used to write the program to solve it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top