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 listOct 24, 2026 19:14timothygktimothygkError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 24, 2026 19:14087,118,92064,730,00011,385,0002,117,632expected "53686785497336886 ", got "53686772105396100 "stderr
2Oct 24, 2026 19:14084,625,53462,538,00011,150,0002,117,632expected "53685274762464770 ", got "53685234142118680 "stderr
3Oct 24, 2026 19:14086,618,84964,691,00010,937,0002,117,632expected "53685087991347500 ", got "53685052314188650 "stderr