Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listJun 7, 2024 19:43GraceGraceError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
2Jun 7, 2024 19:4500000Error: Killed by timeoutstderr
3Jun 7, 2024 19:4500000Error: Killed by timeoutstderr
4Jun 7, 2024 19:4500000Error: Killed by timeoutstderr
5Jun 7, 2024 19:4500000Error: Killed by timeoutstderr
6Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
7Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
8Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
9Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
10Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
11Jun 7, 2024 19:4300000Error: Killed by timeoutstderr
12Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
13Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
14Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
15Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
16Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
17Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
18Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
19Jun 7, 2024 19:4400000Error: Killed by timeoutstderr
20Jun 7, 2024 19:4300000Error: Killed by timeoutstderr