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 8, 2026 06:04Karthik 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 8, 2026 06:0403,503,534,631493,322,0001,105,0002,113,536expected "53692077995280617 ", got " base 25974=53692077995280617 g0_8k 30184=53692077995280617 g0_16k 27785=53692077995280617 g1_8k 26950=53692077995280617 g0_2k 26210=53692077995280617 g0_4k 26992=53692077995280617 base 25806 g0_8k 30187 g0_16k 2779...
2Oct 8, 2026 06:0403,502,244,317492,080,0001,075,0002,113,536expected "53681536981677050 ", got " base 26041=53681536981677050 g0_8k 30057=53681536981677050 g0_16k 27764=53681536981677050 g1_8k 26795=53681536981677050 g0_2k 26219=53681536981677050 g0_4k 26822=53681536981677050 base 25696 g0_8k 30061 g0_16k 2775...
3Oct 8, 2026 06:0403,503,886,261493,566,0001,114,0002,113,536expected "53690254809004998 ", got " base 26263=53690254809004998 g0_8k 30234=53690254809004998 g0_16k 27898=53690254809004998 g1_8k 27174=53690254809004998 g0_2k 26239=53690254809004998 g0_4k 26864=53690254809004998 base 25816 g0_8k 30120 g0_16k 2783...