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 12, 2026 00:15boop34boop34Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 12, 2026 00:150150,037,551137,298,0003,040,0002,121,728expected "53685480196977501 ", got "2745016352 "stderr
2Jul 12, 2026 00:150150,708,368136,263,0004,098,0002,121,728expected "53690471653921370 ", got "419735948 "stderr
3Jul 12, 2026 00:150150,006,254137,296,0003,022,0002,121,728expected "53688994019895063 ", got "930723140 "stderr