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 listSep 29, 2026 10:31wnwnError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2026 10:31036,503,62926,517,0001,015,00020,480expected "53688848876077869 ", got "53688848876077869 569234 2248 264898 26458068 59189 "
2Sep 29, 2026 10:31037,560,08728,707,000020,480expected "53684925198313591 ", got "53684925198313591 405032 2166 272464 27780006 55918 "
3Sep 29, 2026 10:31037,613,22027,364,000020,480expected "53680598469257786 ", got "53680598469257786 416318 2176 265275 26434143 54448 "