Rice Sack
Time limit1sMemory limit128 MB
For each test case, print the heaviest of the five given sack weights in the required case format.
- Level
Easy1 of 10
- Topics
- Array
- Solved
- No attempts yet
Problem
Several sacks of rice have to be carried to five orphanages. The heaviest sack goes to Al-Ameen Orphanage, which takes in the most children, and the lightest one goes to Mutiara Orphanage, where few children stay.
Given the weights of a row of rice sacks, decide which sack goes to Al-Ameen.
Input
The first line contains one integer, the number of test cases.
Each of the following lines contains five integers separated by blanks, the weights of five rice sacks. No sack weighs more than 100 units.
Output
For each test case, print one line in the format Case #x: w, where x is the test case number starting from 1 and w is the weight of the rice sack that goes to Al-Ameen.