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 listJan 16, 2022 14:53Andrey TsvetkovAndrey TsvetkovScore: 76,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2022 14:5476,335701,894,472633,576,49102,260,992
2Jan 16, 2022 14:5376,337690,894,451633,594,25502,244,608
3Jan 16, 2022 14:5476,338692,011,562633,605,01902,256,896
4Jan 16, 2022 14:5476,340692,887,975633,624,98102,244,608
5Jan 16, 2022 14:5376,343688,678,932633,643,48602,252,800
6Jan 16, 2022 14:5376,346690,500,257633,675,10402,244,608