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 5, 2026 09: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 5, 2026 09:02011,437,44901,401,0002,117,632expected "53687617881754529 ", got "end: 1:504/504 16:318/272 64:358/272 256:281/224 512:286/256 1024:284/220 2048:279/240 3072:330/240 4096:313/240 6144:272/204 8192:257/204 12288:276/240 16384:272/240 32768:351/240 beg: 1:278/240 16:317/244 64:278/24...
2Oct 5, 2026 09:02011,557,65001,552,0002,117,632expected "53693727473081676 ", got "end: 1:296/296 16:340/320 64:408/276 256:393/264 512:309/248 1024:341/252 2048:276/236 3072:275/232 4096:285/232 6144:284/232 8192:282/240 12288:286/236 16384:286/232 32768:286/236 beg: 1:280/200 16:329/196 64:275/20...
3Oct 5, 2026 09:02011,411,74201,403,0002,117,632expected "53686328751540149 ", got "end: 1:340/340 16:538/352 64:293/256 256:299/268 512:396/256 1024:500/256 2048:380/236 3072:280/240 4096:323/204 6144:279/204 8192:282/240 12288:397/240 16384:280/204 32768:283/200 beg: 1:349/240 16:270/240 64:262/23...