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 listMay 5, 2026 00:05olliecrowolliecrowError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 00:10085,467,94256,369,0002,264,0002,539,520expected "53688909747917392 ", got "53688909722317136 "
2May 5, 2026 00:10083,415,60757,175,0002,263,0002,531,328expected "53686806215822744 ", got "53686805933966744 "
3May 5, 2026 00:106,98885,927,62455,755,0002,247,0002,482,176