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 listNov 9, 2026 11:40Damir ZainullinDamir ZainullinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2026 11:400872,814,180802,713,00059,187,0002,113,536expected "53684319577172399 ", got "53683917458172399 "
2Nov 9, 2026 11:400872,945,835802,682,00059,336,0002,113,536expected "53693629227522852 ", got "53693215653522852 "
3Nov 9, 2026 11:400872,707,868803,549,00058,288,0002,113,536expected "53688384811997727 ", got "53687972741997727 "