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:02Karthik 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:020693,976,577683,874,0001,008,0002,113,536expected "53684799343299032 ", got "2713 28 999|2619,53 2619,53 2621,54 2633,54 2622,55 2623,55 2625,55 2621,51 2619,53 2620,54 2619,54 2619,54 2620,55 2622,55 2624,55 2619,51 2615,53 2620,54 2620,55 2619,55 2623,55 2622,55 2624,56 2618,52 |2531|164 "
2Oct 1, 2026 18:020694,043,970683,863,0001,006,0002,113,536expected "53692963592168153 ", got "2731 26 999|2696,55 2619,54 2614,54 2617,55 2619,56 2617,56 2618,56 2614,52 2615,54 2618,54 2629,54 2618,55 2617,56 2618,56 2617,56 2615,52 2614,54 2615,54 2617,54 2617,56 2617,56 2618,55 2619,56 2614,52 |2527|65 "
3Oct 1, 2026 18:020694,698,069684,475,0001,153,0002,113,536expected "53685609326770296 ", got "2736 27 999|2622,51 2623,52 2624,52 2624,52 2625,53 2624,52 2626,53 2624,49 2619,51 2624,52 2623,51 2623,52 2624,52 2622,52 2624,53 2622,49 2620,51 2623,52 2623,52 2622,52 2622,53 2623,52 2625,53 2623,49 |2533|139 "