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 listMay 11, 2026 07:42wnwnError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 07:43037,215,71629,679,00002,113,536expected "53684123939684023 ", got "53684123939677693 "
2May 11, 2026 07:433,41736,011,69628,369,00002,113,536
3May 11, 2026 07:433,42735,704,65328,447,00002,113,536
4May 11, 2026 07:433,44338,955,70528,581,00002,113,536
5May 11, 2026 07:433,46436,599,37427,718,0001,035,0002,113,536
6May 11, 2026 07:433,54736,856,57729,441,00002,113,536
7May 11, 2026 07:433,55239,019,55829,488,00002,113,536
8May 11, 2026 07:433,60237,170,70129,898,00002,113,536
9May 11, 2026 07:433,61438,635,20430,003,00002,113,536