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:07Jack FrigaardJack FrigaardScore: 4,870Success
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:074,83668,053,21637,132,0003,010,0002,457,600
2Dec 31, 2022 17:074,84868,176,55340,235,00002,457,600
3Dec 31, 2022 17:074,84862,742,53537,223,0003,018,0002,523,136
4Dec 31, 2022 17:074,84960,248,63939,243,0001,006,0002,519,040
5Dec 31, 2022 17:074,85063,288,49438,239,0002,012,0002,289,664
6Dec 31, 2022 17:074,85363,704,61837,258,0003,020,0002,457,600
7Dec 31, 2022 17:074,85469,844,36337,265,0003,021,0002,523,136
8Dec 31, 2022 17:074,87072,918,64438,403,0002,021,0002,461,696
9Dec 31, 2022 17:074,92065,942,54538,842,0001,991,0002,461,696
10Dec 31, 2022 17:074,92467,605,09337,881,0002,990,0002,523,136
11Dec 31, 2022 17:074,949100,697,62241,076,43402,199,552
12Dec 31, 2022 17:074,953113,227,43641,109,38802,207,744
13Dec 31, 2022 17:074,95566,006,06138,117,0003,009,0002,281,472
14Dec 31, 2022 17:074,95868,129,54638,141,0003,011,0002,453,504
15Dec 31, 2022 17:074,998107,057,02541,486,28102,203,648