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 07:12Kevin HeaveyKevin HeaveyError
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 07:12040,443,97629,886,0001,067,0002,117,632expected "53688331107837669 ", got "170386675526021312"
2Jul 6, 2026 07:12040,402,39929,749,0001,155,0002,117,632expected "53681989155556685 ", got "170273387635775764"
3Jul 6, 2026 07:12042,397,08931,669,0001,248,0002,117,632expected "53689462488769033 ", got "170321919540450570"