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:08Jack FrigaardJack FrigaardScore: 4,900Success
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:084,85162,507,85238,252,0002,013,0002,461,696
2Dec 31, 2022 17:084,86566,322,33338,361,0002,019,0002,449,408
3Dec 31, 2022 17:084,87164,957,57638,408,0002,021,0002,523,136
4Dec 31, 2022 17:084,88066,896,07839,492,0001,012,0002,523,136
5Dec 31, 2022 17:084,88768,244,85940,560,00002,457,600
6Dec 31, 2022 17:084,89065,814,36138,559,0002,029,0002,457,600
7Dec 31, 2022 17:084,89067,537,47238,562,0002,029,0002,523,136
8Dec 31, 2022 17:084,90068,068,61440,671,00002,457,600
9Dec 31, 2022 17:084,91966,638,34839,835,000995,0002,453,504
10Dec 31, 2022 17:084,92266,272,97639,853,000996,0002,523,136
11Dec 31, 2022 17:084,92767,030,69838,897,0001,994,0002,523,136
12Dec 31, 2022 17:084,954103,593,99041,115,77402,211,840
13Dec 31, 2022 17:085,009111,691,94041,571,46402,203,648
14Dec 31, 2022 17:085,02267,259,06141,685,00002,523,136
15Dec 31, 2022 17:085,03497,383,26341,785,89402,203,648