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 listSep 24, 2026 07:39wnwnError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 24, 2026 07:4201,279,409,8201,268,224,0002,006,0002,113,536expected "53696142923061979 ", got "18446744073709551001 524139695 48 0 0 10 27905280 53696142923061979 1 4 26881126 53696142923061979 2 10 26498304 53696142923061979 3 10 26402068 53696142923061979 4 12 26709690 53696142923061979 5 10 26304686 5369614...
2Sep 24, 2026 07:4201,285,260,3571,275,341,0001,120,0002,113,536expected "53686097046009662 ", got "18446744073709551001 524127565 48 0 0 10 28360040 53686097046009662 1 4 26728358 53686097046009662 2 10 26494778 53686097046009662 3 10 26478448 53686097046009662 4 12 26523970 53686097046009662 5 10 26476664 5368609...
3Sep 24, 2026 07:4201,280,596,3361,270,824,0001,054,0002,113,536expected "53687000045372227 ", got "18446744073709551001 524131448 48 0 0 10 26557542 53687000045372227 1 4 26715452 53687000045372227 2 10 26855403 53687000045372227 3 10 26429019 53687000045372227 4 12 26456878 53687000045372227 5 10 26487380 5368700...