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 1, 2026 17:41Karthik 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 1, 2026 17:420380,141,549370,026,0001,090,0002,113,536expected "53684654961336457 ", got "2719 26 999|2627,55,3049 2624,55,3049 2643,43,1997 2640,42,1997 2624,55,3049 2625,55,3049 2641,43,1997 2644,42,1997 2630,55,3049 2623,55,3049 2644,42,1997 2639,42,1997 |2533|89 "
2Oct 1, 2026 17:420379,025,040368,787,0001,174,0002,113,536expected "53690636247538624 ", got "2711 26 999|2621,57,3005 2618,56,3005 2631,43,1938 2628,42,1938 2618,56,3005 2619,56,3005 2629,43,1938 2628,42,1938 2620,56,3005 2620,55,3005 2642,42,1938 2627,42,1938 |2531|197 "
3Oct 1, 2026 17:420377,618,573367,445,0001,157,0002,113,536expected "53689389808885372 ", got "2699 27 999|2615,54,2994 2613,54,2994 2615,40,1910 2615,39,1910 2613,54,2994 2612,53,2994 2616,40,1910 2613,40,1910 2614,54,2994 2625,54,2994 2616,41,1910 2616,40,1910 |2526|83 "