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 4, 2021 07:39Andrey TsvetkovAndrey TsvetkovScore: 50,815Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2021 11:1450,797481,420,866421,611,14202,199,552
2Jun 4, 2021 07:3950,800476,651,027421,641,23602,211,840
3Jun 6, 2021 11:1450,803483,682,076421,668,48502,215,936
4Jun 6, 2021 11:1450,815495,680,772421,760,42702,207,744
5Jun 4, 2021 07:3950,823481,466,022421,831,81902,211,840
6Jun 4, 2021 07:3950,834484,139,349421,923,25902,199,552