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,897Success
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,83768,297,70737,137,0003,011,0002,523,136
2Dec 31, 2022 17:084,83965,968,44038,153,0002,008,0002,523,136
3Dec 31, 2022 17:084,84367,369,00637,181,0003,014,0002,461,696
4Dec 31, 2022 17:084,85561,258,80938,284,0002,014,0002,453,504
5Dec 31, 2022 17:084,87868,110,35138,467,0002,024,0002,523,136
6Dec 31, 2022 17:084,89077,968,53138,559,0002,029,0002,523,136
7Dec 31, 2022 17:084,89667,634,85539,622,0001,015,0002,310,144
8Dec 31, 2022 17:084,89769,607,69940,649,00002,453,504
9Dec 31, 2022 17:084,89865,884,90838,620,0002,032,0002,523,136
10Dec 31, 2022 17:084,929114,528,93340,910,91802,199,552
11Dec 31, 2022 17:084,93463,923,11737,959,0002,996,0002,445,312
12Dec 31, 2022 17:084,93763,667,02938,975,0001,998,0002,457,600
13Dec 31, 2022 17:084,93964,522,34337,993,0002,999,0002,523,136
14Dec 31, 2022 17:084,983100,305,51741,362,12702,203,648
15Dec 31, 2022 17:084,996104,995,22641,463,77102,203,648