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:09Jack FrigaardJack FrigaardScore: 4,925Success
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:094,85966,263,72637,306,0003,024,0002,523,136
2Dec 31, 2022 17:094,86061,204,74838,321,0002,016,0002,461,696
3Dec 31, 2022 17:094,87468,562,22437,423,0003,034,0002,453,504
4Dec 31, 2022 17:094,87863,501,71738,466,0002,024,0002,523,136
5Dec 31, 2022 17:094,88568,905,55838,515,0002,027,0002,461,696
6Dec 31, 2022 17:094,88760,409,14139,549,0001,014,0002,514,944
7Dec 31, 2022 17:094,91867,212,02537,832,0002,986,0002,453,504
8Dec 31, 2022 17:094,92568,908,42438,882,0001,993,0002,449,408
9Dec 31, 2022 17:094,92664,592,45737,892,0002,991,0002,523,136
10Dec 31, 2022 17:094,92866,192,58438,909,0001,995,0002,445,312
11Dec 31, 2022 17:094,93065,240,70337,924,0002,994,0002,523,136
12Dec 31, 2022 17:094,93664,042,51538,972,0001,998,0002,449,408
13Dec 31, 2022 17:094,969113,101,58041,245,43102,195,456
14Dec 31, 2022 17:095,008116,856,77841,569,99302,207,744
15Dec 31, 2022 17:095,018103,828,22041,651,23602,207,744