Evil Forest

TimeLimit:1000MS  MemoryLimit:65536KB
64-bit integer IO format:%I64d
未提交 | 登录后收藏
Problem Description
The Bear, king of the forest, loves painting very much. His masterpiece – “Back in time” is very famous around all over the forest. Recently he wants to hold a series painting competition to select those animals who are good at painting as well. So the Bear appoints his minister Tiger to help him prepare the painting competitions.
Tiger owns a stationery factory which produces sketchpad, so he wants to let all the competitions use the sketchpads produced by his factory privately. The Bear plans to hold $N$ painting competitions, and informs Tiger of the number of competitors who are ready for each competition. One competitor needs only one sktechpad in one competition. For each competition, at least 10% extra sketchpads are required as backup just in case.
The Tiger assigns you, his loyal subordinate to calculate the minimum number of sketchpads produced
by his factory.
Input
The first line of the input gives the number of test cases, $T$. $T$ test cases follow.
For each test case, the first line contains an integer $N$, where $N$ is the number of competitions. The next line contains $N$ integers $a_1, a_2, . . . , a_N$ representing the number of competitors in each competition.
$1 \leq T \leq 100$
$1 \leq N \leq 1000$
$1 \leq ai \leq 100$
Output
For each test case, output one line containing “Case #x: y”, where $x$ is the test case number (starting from 1) and $y$ is the minimum number of sketchpads that should be produced by Tiger’s factory.
SampleInput
1
6
13 11 11 11 13 11
SampleOutput
Case #1: 82
 Hint For the first test case, two more sketchpads should be prepared for each painting competition.
Submit
题目统计信息详细
总AC数3
通过人数3
尝试人数3
总提交量5
AC率60.00%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签

T^T Online Judge

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