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:13Jack FrigaardJack FrigaardScore: 5,007Success
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:134,94967,735,16639,070,0002,003,0002,523,136
2Dec 31, 2022 17:134,96263,920,02740,182,0001,004,0002,445,312
3Dec 31, 2022 17:134,96369,713,45438,178,0003,014,0002,449,408
4Dec 31, 2022 17:134,96364,594,17438,183,0003,014,0002,523,136
5Dec 31, 2022 17:134,96365,452,24338,183,0003,014,0002,281,472
6Dec 31, 2022 17:135,00067,611,37040,485,0001,012,0002,453,504
7Dec 31, 2022 17:135,00466,775,52640,523,0001,013,0002,523,136
8Dec 31, 2022 17:135,00763,170,91239,529,0002,027,0002,523,136
9Dec 31, 2022 17:135,00769,157,81940,542,0001,013,0002,289,664
10Dec 31, 2022 17:135,02966,175,22438,759,0002,981,0002,449,408
11Dec 31, 2022 17:135,031106,500,79341,754,78902,203,648
12Dec 31, 2022 17:135,039113,738,90041,823,50402,203,648
13Dec 31, 2022 17:135,04165,187,09838,854,0002,988,0002,457,600
14Dec 31, 2022 17:135,07368,399,76140,105,0002,005,0002,523,136
15Dec 31, 2022 17:135,076111,929,17242,133,55802,207,744