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 16:53timothygktimothygkError
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 16:54089,709,88968,303,00010,363,0002,117,632expected "53685192263478485 ", got "216148691716346120 "stderr
2Oct 24, 2026 16:54090,448,15568,710,00010,592,0002,117,632expected "53689672470026571 ", got "216141772510629132 "stderr
3Oct 24, 2026 16:54091,443,31068,994,00010,894,0002,117,632expected "53687536153621376 ", got "216159959754566321 "stderr