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 listSep 10, 2021 06:12Andrey TsvetkovAndrey TsvetkovScore: 32,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2021 06:1032,826329,153,133272,456,28502,203,648
2Sep 10, 2021 06:1032,829342,233,736272,482,73402,203,648
3Sep 10, 2021 06:1232,838332,507,393272,555,79802,211,840
4Sep 10, 2021 06:1232,839341,550,991272,563,60902,207,744
5Sep 10, 2021 06:1232,842343,939,608272,587,53102,199,552
6Sep 10, 2021 06:1032,843330,481,106272,593,40902,211,840