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:00Jack FrigaardJack FrigaardScore: 5,137Success
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:005,10666,157,56141,371,0001,009,0002,260,992
2Dec 31, 2022 17:005,10866,723,42339,367,0003,028,0002,260,992
3Dec 31, 2022 17:005,11567,728,51841,444,0001,010,0002,260,992
4Dec 31, 2022 17:005,11966,245,10439,450,0003,034,0002,457,600
5Dec 31, 2022 17:005,12164,681,13440,480,0002,024,0002,519,040
6Dec 31, 2022 17:005,12364,833,79341,510,0001,012,0002,453,504
7Dec 31, 2022 17:005,13671,841,63240,599,0002,029,0002,260,992
8Dec 31, 2022 17:005,13770,612,79940,606,0002,030,0002,523,136
9Dec 31, 2022 17:005,16069,739,48341,832,000996,0002,260,992
10Dec 31, 2022 17:005,19767,456,70142,133,0001,003,0002,260,992
11Dec 31, 2022 17:005,20068,111,34641,150,0002,007,0002,453,504
12Dec 31, 2022 17:005,302103,171,54244,010,21002,207,744
13Dec 31, 2022 17:005,317111,638,69344,128,19102,211,840
14Dec 31, 2022 17:005,342120,882,96844,342,46102,191,360
15Dec 31, 2022 17:005,52671,673,11043,874,0001,994,0002,260,992