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 listJan 11, 2023 19:41Kevin HeaveyKevin HeaveyScore: 52,847Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2023 18:3552,838496,745,779438,556,22102,232,320
2Jan 11, 2023 19:2452,839499,800,128438,565,01602,215,936
3Jan 11, 2023 18:0852,840520,237,932438,568,75502,220,032
4Jan 11, 2023 18:0852,840507,241,089438,573,67602,224,128
5Jan 11, 2023 18:3552,841505,022,607438,578,20102,228,224
6Jan 11, 2023 19:2452,844493,331,237438,607,99802,232,320
7Jan 11, 2023 18:3552,847515,232,476438,633,61002,224,128
8Jan 11, 2023 19:2452,847513,469,571438,629,45302,224,128
9Jan 11, 2023 19:4152,848502,169,655438,636,64502,232,320
10Jan 11, 2023 19:4152,851500,766,384438,662,15102,224,128
11Jan 11, 2023 18:0852,861517,442,071438,744,13202,224,128
12Jan 11, 2023 19:4152,861522,850,019438,744,68402,224,128