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 listJun 17, 2026 09:25DavidDavidError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2026 09:260311,939,271301,836,0001,005,0002,113,536expected "53685217753779115 ", got "53696863810292869 "
2Jun 17, 2026 09:260311,753,245301,761,0001,003,0002,113,536expected "53686169522506772 ", got "53697818955519044 "
3Jun 17, 2026 09:260312,017,170301,993,0001,003,0002,113,536expected "53685094722319434 ", got "53696702358032907 "