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 listDec 11, 2023 21:25metalcoffeemetalcoffeeScore: 513,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 21:25509,0814,285,200,1894,225,369,66002,256,896
2Dec 11, 2023 21:25509,4254,291,933,7874,228,229,01002,240,512
3Dec 11, 2023 21:26509,8594,287,367,6494,231,830,83802,256,896
4Dec 11, 2023 21:25511,4714,306,483,2574,245,209,90902,232,320
5Dec 11, 2023 21:26511,4884,308,686,9244,245,353,24002,232,320
6Dec 11, 2023 21:26511,5004,305,352,6334,245,447,20302,232,320
7Dec 11, 2023 21:26513,4384,333,133,1624,261,533,31202,232,320
8Dec 11, 2023 21:26513,5354,320,133,7984,262,342,23002,232,320
9Dec 11, 2023 21:25513,6024,327,529,5254,262,896,69602,248,704
10Dec 11, 2023 21:25516,8194,343,802,8664,289,595,61402,236,416
11Dec 11, 2023 21:26517,0934,344,747,6714,291,874,23902,240,512
12Dec 11, 2023 21:25534,1074,504,009,8314,433,089,25102,232,320