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:53Jack FrigaardJack FrigaardScore: 5,362Success
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:535,32167,922,55842,159,0002,007,0002,457,600
2Dec 31, 2022 16:535,32170,102,69541,156,0003,011,0002,445,312
3Dec 31, 2022 16:535,32567,622,53541,183,0003,013,0002,514,944
4Dec 31, 2022 16:535,33067,889,56341,219,0003,016,0002,523,136
5Dec 31, 2022 16:535,34567,241,63742,345,0002,016,0002,523,136
6Dec 31, 2022 16:535,35266,560,26642,406,0002,019,0002,523,136
7Dec 31, 2022 16:535,35770,401,56342,441,0002,021,0002,514,944
8Dec 31, 2022 16:535,362101,568,21744,506,77702,199,552
9Dec 31, 2022 16:535,364106,158,06044,523,89502,207,744
10Dec 31, 2022 16:535,37166,733,61943,569,0001,013,0002,457,600
11Dec 31, 2022 16:535,389105,633,48044,727,23002,203,648
12Dec 31, 2022 16:535,42071,118,18441,985,0002,998,0002,523,136
13Dec 31, 2022 16:535,42469,345,00442,015,0003,001,0002,453,504
14Dec 31, 2022 16:535,43566,734,50343,103,0002,004,0002,461,696
15Dec 31, 2022 16:535,80272,878,37545,144,0003,009,0002,453,504