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 2, 2026 07:35Karthik 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 2, 2026 07:380377,891,230367,707,0001,114,0002,113,536expected "53688560502381287 ", got "2712 27 999|2602,55,29 2612,62,45 2613,66,64 2626,82,104 2601,54,29 2615,62,45 2613,66,64 2627,82,104 2600,54,29 2612,62,45 2616,66,64 2624,81,104 |2532|191 "
2Oct 2, 2026 07:380377,998,492367,735,0001,160,0002,113,536expected "53691268442850154 ", got "2716 27 999|2602,54,28 2612,61,43 2615,66,63 2630,82,103 2602,55,28 2614,61,43 2616,66,63 2620,81,103 2601,54,28 2612,60,43 2616,66,63 2623,82,103 |2533|96 "
3Oct 2, 2026 07:380378,479,949366,908,0001,087,0002,113,536expected "53681994232539171 ", got "2707 28 999|2592,53,28 2603,61,44 2608,66,63 2620,81,102 2591,52,28 2603,61,44 2613,65,63 2643,80,102 2592,53,28 2604,61,44 2607,66,63 2619,81,102 |2527|39 "