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 25, 2026 23:27zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:27047,693,13628,295,0001,010,0002,371,584expected "53685510881127300 ", got "X3685511096324554 "stderr
2Apr 25, 2026 23:27046,076,77928,230,0001,008,0002,359,296expected "53690284919053838 ", got "X3690284919053838 "stderr
3Apr 25, 2026 23:27043,352,17728,542,0001,019,0002,359,296expected "53681749979931398 ", got "X3681749979931398 "stderr