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 listApr 27, 2026 05:36wnwnError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 05:36045,984,03227,609,0001,022,0002,486,272expected "53679934944568209 ", got "53679934944567879 "
2Apr 27, 2026 05:363,39645,322,81127,188,0001,006,0002,490,368
3Apr 27, 2026 05:363,39749,663,30627,191,0001,007,0002,482,176
4Apr 27, 2026 05:363,44445,023,03627,569,0001,021,0002,490,368
5Apr 27, 2026 05:363,45748,241,56827,674,0001,024,0002,490,368
6Apr 27, 2026 05:363,45741,867,32527,670,0001,024,0002,482,176
7Apr 27, 2026 05:363,47240,947,62526,834,0001,987,0002,330,624
8Apr 27, 2026 05:363,47847,053,09626,881,0001,991,0002,486,272
9Apr 27, 2026 05:363,55347,627,03929,491,00002,482,176