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 22, 2026 16:16timothygktimothygkError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2026 16:160167,250,118103,311,00052,457,0002,117,632expected "53687925245386539 ", got "53680166473042467 "stderr
2Oct 22, 2026 16:160161,707,461102,130,00048,547,0002,117,632expected "53690857095615885 ", got "53683101680457996 "stderr
3Oct 22, 2026 16:160167,196,287103,915,00051,877,0002,117,632expected "53682098374181517 ", got "53674342244171584 "stderr