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 listJul 31, 2026 18:44George SeabridgeGeorge SeabridgeError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 18:440138,983,101127,810,0001,113,0002,113,536expected "53686165670335660 ", got "26547925670335660 "
2Jul 31, 2026 18:440137,774,694126,556,0001,084,0002,113,536expected "53686785300372601 ", got "26549965500372601 "
3Jul 31, 2026 18:440138,346,314127,180,0001,083,0002,113,536expected "53691245908957220 ", got "26553067108957220 "