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 listJul 6, 2026 04:19Teow Hua JunTeow Hua JunError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 04:210105,621,29584,885,00011,091,0002,117,632expected "53687289732331651 ", got "53687087239641451 "stderr
2Jul 6, 2026 04:210107,011,68585,406,00011,491,0002,117,632expected "53687566628720064 ", got "53687364111827064 "stderr
3Jul 6, 2026 04:210106,714,71885,358,00011,271,0002,117,632expected "53689909041664189 ", got "53689706567289889 "stderr