1.

Given the consecutive scores of a cricket match, calculate the total runs scored, the number of wickets, the extras, the runs scored by each batsman, the number of overs bowled. Notes: wkt - wicket, wd - wide ball, add one run to the scoreboard, bowl again, lb - leg bye, and nb - no-ball, add one run to the scoreboard, bowl again. The sample input is - 1 0 1wd 0 3 2 0 0 2nb 0wkt 6 1 0 4 and sample output is - total runs scored: 20, number of wickets: 1, extras: 2, scores by batsmen: 1st batsmen: 3 runs; 2nd batsmen: 8 runs; 3rd batsmen: 7 runs.​

Answer»

0,1,2,3,4 or 6 from a ballNumber of DIFFERENT SEQUENCES in which he can score exactly +30 runs in an over of 6 balls is Possibilities Permutations6,6,6,6,6,0 5!6! =66,6,6,6,4,2 4!6! =306,6,6,6,3,3 4!2!6! =156,6,6,4,4,4 3!3!6! =20Total WAYS =6+30+15+20 =71



Discussion

No Comment Found