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 8, 2023 14:12Kevin HeaveyKevin HeaveyScore: 50,108Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2023 14:1250,047481,582,075415,392,40502,224,128
2Sep 8, 2023 14:1250,058490,265,691415,484,31602,220,032
3Sep 8, 2023 14:1250,104477,569,674415,866,91002,224,128
4Sep 8, 2023 14:1250,108477,840,852415,895,38702,215,936
5Sep 8, 2023 14:1250,113474,855,791415,940,28402,220,032
6Sep 8, 2023 14:1250,121487,673,217416,000,62902,224,128