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:15Jack FrigaardJack FrigaardScore: 5,169Success
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:155,11071,622,52140,396,0002,019,0002,523,136
2Dec 31, 2022 17:155,11766,244,55239,508,0002,963,0002,523,136
3Dec 31, 2022 17:155,12369,961,05340,498,0002,024,0002,523,136
4Dec 31, 2022 17:155,12663,534,48440,518,0002,025,0002,457,600
5Dec 31, 2022 17:155,13170,706,12539,544,0003,041,0002,449,408
6Dec 31, 2022 17:155,153105,695,41342,772,88702,211,840
7Dec 31, 2022 17:155,16469,908,57139,874,0002,990,0002,449,408
8Dec 31, 2022 17:155,16973,110,91540,910,0001,995,0002,523,136
9Dec 31, 2022 17:155,170129,793,09542,913,58602,211,840
10Dec 31, 2022 17:155,17170,488,67839,924,0002,994,0002,523,136
11Dec 31, 2022 17:155,190114,893,82643,077,20202,203,648
12Dec 31, 2022 17:155,20671,946,37942,202,0001,004,0002,523,136
13Dec 31, 2022 17:155,22767,071,12340,359,0003,026,0002,523,136
14Dec 31, 2022 17:155,22965,872,89441,380,0002,018,0002,523,136
15Dec 31, 2022 17:155,54768,182,00543,041,0003,002,0002,293,760