Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

CVS

unread,
Apr 4, 2010, 9:36:48 AM4/4/10
to
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!!

Dr Malcolm McLean

unread,
Apr 4, 2010, 1:21:02 PM4/4/10
to
On 4 Apr, 14:36, CVS <cvs...@gmail.com> wrote:
> 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.

0 new messages