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 31, 2022 17:02Jack FrigaardJack FrigaardScore: 5,134Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:025,10665,386,07039,352,0003,027,0002,260,992
2Dec 31, 2022 17:025,10964,267,22340,385,0002,019,0002,523,136
3Dec 31, 2022 17:025,11169,132,69539,389,0003,029,0002,453,504
4Dec 31, 2022 17:025,11163,778,54040,400,0002,020,0002,461,696
5Dec 31, 2022 17:025,12067,193,84040,473,0002,023,0002,260,992
6Dec 31, 2022 17:025,12266,446,70939,479,0003,036,0002,523,136
7Dec 31, 2022 17:025,13469,455,55141,601,0001,014,0002,457,600
8Dec 31, 2022 17:025,13469,629,88440,586,0002,029,0002,457,600
9Dec 31, 2022 17:025,17763,225,84039,969,0002,997,0002,260,992
10Dec 31, 2022 17:025,20867,024,01040,210,0003,015,0002,441,216
11Dec 31, 2022 17:025,21669,150,17042,289,0001,006,0002,260,992
12Dec 31, 2022 17:025,22469,753,86340,334,0003,025,0002,260,992
13Dec 31, 2022 17:025,340111,514,91444,324,37102,207,744
14Dec 31, 2022 17:025,370121,277,12344,572,30302,199,552
15Dec 31, 2022 17:025,402123,618,36944,839,02002,203,648