Server Time: Sat Sep 26, 2020 12:48 pm
Welcome ( logout
A - Scoreboard
Ranklist
Time Limit: 0.5 second(s) Memory Limit: 32 MB

Your Friend X wants to create a website for cricket like espncricinfo.com . But he can not count live scoreboard. Your task is simple. You are given first two players ball by ball run. You have to count their final run and ball they played.

 

Input:

First line of input contains an integer T (T<20), denoting the test case. In each test case, first there a number denote how many over the player played.

 

Output:

For every test case, print the case number, then print player information in next two line like this: Player 1 : Run(s) = (run) and Ball(s) = (ball) . See sample input and output for details.

 

Sample input and output:

Sample input

Sample output

2

1

1 2 1 4 0 6

2

1 1 1 0 0 1 0 0 4 6 1 0

Case 1:

Player 1 : Run(s) = 11 and Ball(s) = 4

Player 2 : Run(s) = 3 and Ball(s) = 2

Case 2:

Player 1 : Run(s) = 2 and Ball(s) = 3

Player 2 : Run(s) = 13 and Ball(s) = 9

 

 


Developed and Maintained by
JANE ALAM JAN
Copyright © 2012
LightOJ, Jane Alam Jan