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 listAug 16, 2026 17:54marko1597marko1597Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 16, 2026 18:080492,751,444483,384,0001,042,0002,121,728expected "53694351046100040 ", got "12345812456 "stderr
2Aug 16, 2026 18:080493,853,046484,289,0001,042,0002,121,728expected "53685737186679213 ", got "16579502244 "stderr
3Aug 16, 2026 18:080493,267,265483,699,0001,033,0002,121,728expected "53683394322143228 ", got "28923942747 "stderr