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:13Jack FrigaardJack FrigaardScore: 4,928Success
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:134,87662,563,24039,458,0001,011,0002,457,600
2Dec 31, 2022 17:134,88063,005,60438,480,0002,025,0002,523,136
3Dec 31, 2022 17:134,88062,785,03938,481,0002,025,0002,449,408
4Dec 31, 2022 17:134,88070,200,37439,493,0001,012,0002,457,600
5Dec 31, 2022 17:134,88767,477,40239,545,0001,013,0002,453,504
6Dec 31, 2022 17:134,89170,444,69738,566,0002,029,0002,523,136
7Dec 31, 2022 17:134,89169,215,22738,564,0002,029,0002,453,504
8Dec 31, 2022 17:134,92864,308,55439,905,000997,0002,445,312
9Dec 31, 2022 17:134,92964,470,27838,912,0001,995,0002,523,136
10Dec 31, 2022 17:134,93667,648,38037,969,0002,997,0002,523,136
11Dec 31, 2022 17:134,94267,106,59538,020,0003,001,0002,457,600
12Dec 31, 2022 17:134,948126,843,68941,068,46402,207,744
13Dec 31, 2022 17:134,95370,636,63639,104,0002,005,0002,523,136
14Dec 31, 2022 17:134,956122,555,17941,135,70602,211,840
15Dec 31, 2022 17:134,977107,474,79841,312,37002,195,456