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 18:25marko1597marko1597Error
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:380505,816,568496,341,0001,006,0002,121,728expected "53687892210471591 ", got "2037635763 "stderr
2Aug 16, 2026 18:380499,311,846489,698,0001,138,0002,121,728expected "53687817547531251 ", got "2037607428 "stderr
3Aug 16, 2026 18:380502,351,013492,704,0001,152,0002,121,728expected "53682214377885657 ", got "2037670653 "stderr