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:40Karthik 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:400748,458,290738,206,0001,097,0002,117,632expected "53689800446432782 ", got "53689800446432782 phase main->mapped(populate+table) 0.274 parse 26.733 big 1 clock cyc/ktsc 999 999 A r8_2M8K_l512 26.947 A r4_2M8K_l512 26.464 A r5_2M8K_l512 26.511 A r6_2M8K_l640 26.357 A r3_2M8K_l512 26.798 A r2_...
2Oct 1, 2026 09:400750,494,275740,435,0001,003,0002,117,632expected "53686496211072650 ", got "53686496211072650 phase main->mapped(populate+table) 0.268 parse 26.836 big 1 clock cyc/ktsc 999 999 A r8_2M8K_l512 26.957 A r4_2M8K_l512 26.534 A r5_2M8K_l512 26.536 A r6_2M8K_l640 26.418 A r3_2M8K_l512 26.850 A r2_...
3Oct 1, 2026 09:400749,564,785739,031,0001,112,0002,117,632expected "53689772027608535 ", got "53689772027608535 phase main->mapped(populate+table) 0.266 parse 26.928 big 1 clock cyc/ktsc 999 999 A r8_2M8K_l512 26.928 A r4_2M8K_l512 26.440 A r5_2M8K_l512 26.524 A r6_2M8K_l640 26.400 A r3_2M8K_l512 26.806 A r2_...