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:26EdgarEdgarError
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:35072,662,68156,195,0006,223,0002,117,632expected "53693133428289036 ", got "292303711702921550 "
2Sep 24, 2026 04:35072,901,27356,574,0006,031,0002,117,632expected "53684991663255644 ", got "292348065506381080 "
3Sep 24, 2026 04:35073,010,41456,033,0006,688,0002,117,632expected "53686866317281493 ", got "292355452515713707 "