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 9, 2026 21:21Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 21:2503,707,386,027697,264,0001,032,0002,113,536expected "53689009389445845 ", got " base 25928=53689009389445845 p0 25727=53689009389445845 p8 25721=53689009389445845 p16 25722=53689009389445845 p24 25740=53689009389445845 p32 25774=53689009389445845 p40 25770=53689009389445845 p48 25719=5368900938...
2Oct 9, 2026 21:2503,707,814,797697,583,0001,105,0002,113,536expected "53683632752848114 ", got " base 25952=53683632752848114 p0 25747=53683632752848114 p8 25724=53683632752848114 p16 25757=53683632752848114 p24 25763=53683632752848114 p32 25762=53683632752848114 p40 25753=53683632752848114 p48 25754=5368363275...
3Oct 9, 2026 21:2503,709,846,147699,615,0001,072,0002,113,536expected "53687381388611654 ", got " base 26177=53687381388611654 p0 25801=53687381388611654 p8 25863=53687381388611654 p16 25820=53687381388611654 p24 25799=53687381388611654 p32 25799=53687381388611654 p40 25812=53687381388611654 p48 25805=5368738138...