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 4, 2021 20:14Andrey TsvetkovAndrey TsvetkovScore: 54,120Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2021 20:0954,039513,105,009448,523,94702,260,992
2Sep 4, 2021 20:0954,114513,704,738449,144,06402,260,992
3Sep 4, 2021 20:1454,117504,250,382449,168,33702,256,896
4Sep 4, 2021 20:1454,120505,276,690449,197,40902,256,896
5Sep 4, 2021 20:0954,134512,152,895449,313,13002,265,088
6Sep 4, 2021 20:1454,230504,957,570450,105,28502,244,608