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:06Jack FrigaardJack FrigaardScore: 4,922Success
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:064,85363,196,06337,259,0003,021,0002,457,600
2Dec 31, 2022 17:064,86562,127,04338,364,0002,019,0002,523,136
3Dec 31, 2022 17:064,86665,047,39338,371,0002,019,0002,453,504
4Dec 31, 2022 17:064,86870,402,45937,375,0003,030,0002,523,136
5Dec 31, 2022 17:064,87063,122,83538,397,0002,020,0002,514,944
6Dec 31, 2022 17:064,89871,250,10238,618,0002,032,0002,523,136
7Dec 31, 2022 17:064,90366,447,39439,674,0001,017,0002,445,312
8Dec 31, 2022 17:064,92267,679,30439,853,000996,0002,523,136
9Dec 31, 2022 17:064,92467,347,98939,851,0001,021,0002,461,696
10Dec 31, 2022 17:064,93063,590,70838,923,0001,996,0002,523,136
11Dec 31, 2022 17:064,948107,257,44241,065,14502,203,648
12Dec 31, 2022 17:064,94868,545,28638,062,0003,004,0002,523,136
13Dec 31, 2022 17:064,95165,511,98238,088,0003,006,0002,523,136
14Dec 31, 2022 17:064,969103,079,13041,242,81202,207,744
15Dec 31, 2022 17:064,977108,305,51741,305,24402,207,744