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 09:44Karthik 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 09:4401,034,331,9881,024,247,0001,025,0002,113,536expected "53689759432335243 ", got "2683 28 999|2716 2661 2651 2653 2652 2651 2819 2818 2763 3141 2906 2751 2733 2743 2857 2697 3105 3228 2692 2633 2710 2661 2644 2755 2677 2801 2623 2928 3045 2696 2650 2758 2601 2627 2748 2644|121us 2048K 19 "
2Oct 1, 2026 09:4401,032,471,6511,022,297,0001,077,0002,113,536expected "53689465377111810 ", got "2679 27 999|2709 2654 2646 2648 2648 2648 2813 2812 2760 3141 2975 2743 2768 2740 2852 2697 3083 3201 2677 2630 2705 2655 2637 2744 2681 2785 2610 2896 3038 2695 2645 2749 2589 2614 2739 2636|121us 2048K 100 "
3Oct 1, 2026 09:4401,029,593,9231,019,556,0001,031,0002,113,536expected "53690143984578162 ", got "2681 27 999|2704 2649 2641 2643 2643 2641 2811 2809 2753 3129 2902 2745 2725 2737 2850 2698 3095 3211 2688 2628 2702 2652 2628 2721 2661 2745 2617 2828 3040 2693 2644 2742 2594 2620 2743 2635|121us 2048K 246 "