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:05Jack FrigaardJack FrigaardScore: 4,969Success
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:054,90464,983,64439,686,0001,017,0002,457,600
2Dec 31, 2022 17:054,94266,252,22838,016,0003,001,0002,523,136
3Dec 31, 2022 17:054,95565,059,50640,126,0001,003,0002,453,504
4Dec 31, 2022 17:054,96364,139,12538,178,0003,014,0002,457,600
5Dec 31, 2022 17:054,96363,920,06938,181,0003,014,0002,523,136
6Dec 31, 2022 17:054,96365,635,29839,184,0002,009,0002,453,504
7Dec 31, 2022 17:054,96762,389,34038,207,0003,016,0002,453,504
8Dec 31, 2022 17:054,96967,300,62338,224,0003,017,0002,523,136
9Dec 31, 2022 17:054,98566,088,47539,356,0002,018,0002,523,136
10Dec 31, 2022 17:054,98869,558,66439,379,0002,019,0002,445,312
11Dec 31, 2022 17:055,00166,288,97338,472,0003,037,0002,523,136
12Dec 31, 2022 17:055,04065,878,55640,837,000996,0002,523,136
13Dec 31, 2022 17:055,046103,390,64441,885,78102,207,744
14Dec 31, 2022 17:055,05194,963,12541,926,08202,195,456
15Dec 31, 2022 17:055,054100,561,59541,945,84102,215,936