TopCoder

M_SQRT
while(true) $\bf{\color{#3498DB}{\require{color}\colorbox{#D9EDF7}{TLE}}}$;

User's AC Ratio

93.3% (14/15)

Submission's AC Ratio

61.0% (36/59)

Tags

Description



Input Format

Output Format

Sample Input 1

3
1 1 1

Sample Output 1

3

Sample Input 2

5
7 6 5 6 7

Sample Output 2

25

Hints

Problem Source

NEOJ Problem 513

Subtasks

No. Testdata Range Constraints Score
1 0~16 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 262144 65536 1
1 1000 262144 65536 1
2 1000 262144 65536 1
3 1000 262144 65536 1
4 1000 262144 65536 1
5 1000 262144 65536 1
6 1000 262144 65536 1
7 1000 262144 65536 1
8 1000 262144 65536 1
9 1000 262144 65536 1
10 1000 262144 65536 1
11 1000 262144 65536 1
12 1000 262144 65536 1
13 1000 262144 65536 1
14 1000 262144 65536 1
15 1000 262144 65536 1
16 1000 262144 65536 1