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:36Karthik 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:360604,263,034594,043,0001,124,0002,113,536expected "53693786628099430 ", got "2703 28 999|2616,52 2676,51 2627,51 2620,53 2620,53 2942,66 2926,49 2708,45 2627,37 2618,39 2615,51 2677,51 2629,51 2623,53 2619,53 2942,67 2924,49 2710,44 2630,37 2618,39 |2531|16 "
2Oct 1, 2026 17:360605,639,816595,307,0001,155,0002,113,536expected "53685377473688414 ", got "2714 27 999|2620,53 2681,52 2628,52 2623,54 2625,54 2941,67 2928,50 2710,45 2642,39 2631,40 2623,53 2679,52 2631,53 2624,54 2634,55 2944,67 2932,50 2716,45 2639,39 2631,41 |2533|171 "
3Oct 1, 2026 17:360603,790,181593,606,0001,018,0002,113,536expected "53684359266383121 ", got "2724 27 999|2616,52 2672,51 2622,52 2616,52 2617,52 2933,65 2919,47 2706,45 2626,38 2617,39 2626,52 2673,50 2622,51 2616,52 2617,53 2935,65 2917,47 2705,44 2628,38 2617,38 |2526|56 "