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 18:06Karthik 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 18:060381,050,301370,919,0001,124,0002,113,536expected "53687929478133690 ", got "2735 28 999|2622,54,3084 2623,54,3257 2651,60,4475 2663,79,10375 2618,53,3084 2622,54,3257 2659,60,4475 2663,80,10375 2620,53,3084 2624,54,3257 2652,60,4475 2663,80,10375 |2531|146 "
2Oct 1, 2026 18:060379,923,590369,858,0001,006,0002,113,536expected "53676823187150651 ", got "2708 26 999|2608,51,3009 2615,53,3175 2646,59,4409 2659,78,10241 2608,51,3009 2614,53,3175 2644,59,4409 2660,77,10241 2621,55,3009 2612,53,3175 2645,59,4409 2660,78,10241 |2530|76 "
3Oct 1, 2026 18:060382,744,850372,554,0001,130,0002,113,536expected "53688894520707562 ", got "2722 28 999|2622,54,3031 2625,56,3216 2675,62,4490 2692,82,10326 2620,53,3031 2629,55,3216 2676,62,4490 2693,81,10326 2623,54,3031 2626,55,3216 2677,62,4490 2693,82,10326 |2534|146 "