# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

# GPA Calculator

Shibli is a very good student. He is very regular and attentive in his classes. He is very serious about his study. So he makes good result in every semester. Recently his previous semester result has published. Since Shibli is very busy with his study he asks his good friend Swapnil who is a very good programmer to calculate his Grade Point Average (GPA).

## Input

Input starts with an integer T(<=5), denoting the number of test cases. Each test case starts with an integer N(<=8), denoting the number of subjects. Next N line contains a floating point number p (2 ≤ p ≤ 4) denoting the grade point Shibli got in each subject of previous semester. And you can assume that p contains four digits after the decimal point.

## Output

For each test case, print a line “Case x: y” where x is replaced by the test case number and y is the GPA of previous semester Shibli got, rounded to three places after the decimal point.

## Sample

Input | Output |
---|---|

2 5 3.4252 2.8526 3.9685 2.8754 3.8568 4 2.8569 3.2154 2.2369 4.0000 | Case 1: 3.396 Case 2: 3.077 |

94% Solution Ratio

KIRIN29Earliest,

KIRIN29Fastest, 0.0s

protapLightest, 0 B

FahimSifnatulShortest, 103B

Login to submit