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 listOct 2, 2026 18:54Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2026 18:540235,731,648222,887,0003,745,00020,480expected "53687147206349011 ", got "2624 2946 2607 2946 2608 2944 2608 2946 "
2Oct 2, 2026 18:540241,170,395228,041,0003,999,00020,480expected "53693070001092317 ", got "2611 3084 2597 3084 2615 3083 2598 3083 "
3Oct 2, 2026 18:540236,419,941223,561,0003,727,00020,480expected "53683839211451815 ", got "2604 2989 2594 2977 2587 2977 2588 2991 "