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:38Karthik 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:380395,371,817384,270,0001,091,0002,113,536expected "53688232311909684 ", got "2742 28 999|2618,55,3031 2616,56,3031 2630,41,1971 2669,43,1971 2739,55,3031 2733,56,3031 2842,47,1971 2796,46,1971 2738,55,3031 2763,57,3031 2880,46,1971 2902,48,1971 |2607|150 "
2Oct 1, 2026 17:380383,633,851373,595,0001,058,0002,113,536expected "53694087920896415 ", got "2695 27 999|2612,54,3046 2609,55,3046 2684,43,1971 2801,47,1971 2714,56,3046 2717,56,3046 2735,44,1971 2616,42,1971 2638,55,3046 2609,55,3046 2619,41,1971 2633,42,1971 |2526|18 "
3Oct 1, 2026 17:380398,867,842380,507,0001,151,0002,113,536expected "53689100163567751 ", got "2807 27 999|2789,57,3066 2681,57,3066 2693,45,1985 2696,45,1985 2683,56,3066 2679,56,3066 2680,44,1985 2701,44,1985 2723,55,3066 2715,56,3066 2689,42,1985 2709,45,1985 |2660|97 "