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 15:44Jack FrigaardJack FrigaardScore: 5,348Success
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 15:445,31666,284,45741,113,0003,008,0002,523,136
2Dec 31, 2022 15:445,32371,711,11341,170,0003,012,0002,523,136
3Dec 31, 2022 15:445,32366,970,31541,170,0003,012,0002,523,136
4Dec 31, 2022 15:445,32667,049,09041,193,0003,014,0002,523,136
5Dec 31, 2022 15:445,32967,542,92242,219,0002,010,0002,514,944
6Dec 31, 2022 15:445,33166,754,64241,234,0003,017,0002,523,136
7Dec 31, 2022 15:445,33369,391,99641,247,0003,018,0002,514,944
8Dec 31, 2022 15:445,34866,035,63141,360,0003,026,0002,306,048
9Dec 31, 2022 15:445,35069,187,23941,380,0003,027,0002,461,696
10Dec 31, 2022 15:445,366121,448,90444,535,10402,199,552
11Dec 31, 2022 15:445,383113,150,86544,682,03402,195,456
12Dec 31, 2022 15:445,403105,690,99644,846,86102,199,552
13Dec 31, 2022 15:445,42173,719,61741,993,0002,999,0002,461,696
14Dec 31, 2022 15:445,43072,597,13242,069,0003,004,0002,457,600
15Dec 31, 2022 15:445,45965,659,44442,292,0003,020,0002,265,088