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 17:37Karthik 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 17:370169,347,228159,091,0001,177,0002,113,536expected "53684719781123227 ", got "2749 28 999|26392,685,403,183,128,84,42,3000 26340,506,259,101,74,108,31,1903 26306,678,397,182,127,83,41,3000 26344,507,259,100,73,105,32,1903 |2533|70 "
2Oct 1, 2026 17:370169,193,778158,986,0001,134,0002,113,536expected "53685967463148902 ", got "2729 28 999|26318,684,401,188,134,97,40,3035 26391,507,253,99,71,107,32,1965 26313,686,401,190,135,95,41,3035 26407,510,256,101,72,109,30,1965 |2533|246 "
3Oct 1, 2026 17:370168,623,432158,460,0001,121,0002,113,536expected "53698136447448964 ", got "2709 27 999|26256,703,407,184,128,98,41,3110 26333,520,257,100,72,126,31,2019 26252,707,407,187,130,100,44,3110 26325,530,261,102,73,124,32,2019 |2526|24 "