Cheat

TimeLimit:1000ms  MemoryLimit:128000KB
64-bit integer IO format:%lld
未提交 | 登录后收藏
Problem Description
Xiaoming is busy writing novels and playing basketball recently. Nowadays he failed in math, so he tried his best to review his lessons starts by answering problems.
The accuracy of the each problem is fixed. Now the question is how many questions xiaoming can answer successfully.

Input
The first line of date is an integer T, which is the number of the test cases.
Then T cases follow, each case starts with an integer N, which stands for the number of the problems. The next line has N float numbers, which stands for xiaoming’s accuracy for each problem.(T<=100,N<=10)

Output
For each case, you should output the expect number of problems xiaoming can answer, accurate up to 4 decimal places.

SampleInput
2
1
0.5
2
0.5 0.5
SampleOutput
Case 1: 0.5000
Case 2: 1.0000
Submit
题目统计信息详细
总AC数42
通过人数40
尝试人数43
总提交量71
AC率56.34%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: