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 listSep 24, 2026 04:24EdgarEdgarError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 24, 2026 04:3101,263,361,2891,245,275,0007,024,0002,117,632expected "53688218740930482 ", got "53695060580937785 "
2Sep 24, 2026 04:3101,262,351,0111,244,822,0007,226,00024,576expected "53692284387621568 ", got "53696560647272174 "
3Sep 24, 2026 04:3101,260,870,6451,243,296,0007,174,0002,117,632expected "53690125935557768 ", got "53696968025946665 "