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 1, 2026 18:00Karthik 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 1, 2026 18:00076,546,86666,348,0001,132,0002,113,536expected "53683056004260847 ", got "1 36014 1096 29663 1096 "
2Oct 1, 2026 18:00076,596,72666,373,0001,157,0002,113,536expected "53684566387049584 ", got "1 36128 1164 29603 1164 "
3Oct 1, 2026 18:00077,231,61767,111,0001,148,0002,113,536expected "53699063827027252 ", got "1 36645 1136 29785 1136 "