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 16:56Jack FrigaardJack FrigaardScore: 5,338Success
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 16:565,28368,721,86540,859,0002,989,0002,449,408
2Dec 31, 2022 16:565,29368,026,88040,940,0002,995,0002,293,760
3Dec 31, 2022 16:565,30265,151,16741,010,0003,000,0002,260,992
4Dec 31, 2022 16:565,30470,711,99441,022,0003,001,0002,519,040
5Dec 31, 2022 16:565,30665,273,46143,041,0001,000,0002,453,504
6Dec 31, 2022 16:565,31071,053,01141,072,0003,005,0002,457,600
7Dec 31, 2022 16:565,31472,376,85042,103,0002,004,0002,453,504
8Dec 31, 2022 16:565,33863,848,84941,282,0003,020,0002,523,136
9Dec 31, 2022 16:565,35965,194,81744,483,00002,260,992
10Dec 31, 2022 16:565,40067,514,28842,830,0001,992,0002,449,408
11Dec 31, 2022 16:565,41268,593,63941,926,0002,994,0002,441,216
12Dec 31, 2022 16:565,582111,475,02446,328,76702,195,456
13Dec 31, 2022 16:565,603129,543,50346,502,85702,203,648
14Dec 31, 2022 16:565,606101,823,62846,531,85602,211,840
15Dec 31, 2022 16:565,76277,476,77846,829,000996,0002,461,696