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 listJun 11, 2026 20:11kuba1803kuba1803Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 20:1103,290,490,0113,210,032,00071,101,0002,113,536expected "53684532091833338 ", got "53825256334689050 "
2Jun 11, 2026 20:1103,262,158,1333,183,745,00069,064,0002,113,536expected "53688002954959920 ", got "53828733411495232 "
3Jun 11, 2026 20:1103,260,270,4853,180,617,00070,077,0002,113,536expected "53688660865092675 ", got "53829397899021827 "