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 28, 2022 16:59Bernard TeoBernard TeoScore: 7,951Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 16:597,93687,653,05663,872,0001,996,0002,273,280
2Dec 28, 2022 16:597,93685,972,07663,876,0001,996,0002,400,256
3Dec 28, 2022 16:597,93988,439,35164,893,000998,0002,273,280
4Dec 28, 2022 16:597,94489,925,42463,940,0001,998,0002,404,352
5Dec 28, 2022 16:597,94689,096,91863,956,0001,998,0002,273,280
6Dec 28, 2022 16:597,94889,332,00163,973,0001,999,0002,273,280
7Dec 28, 2022 16:597,95088,524,78963,990,0001,999,0002,392,064
8Dec 28, 2022 16:597,95186,461,58364,995,000999,0002,273,280
9Dec 28, 2022 16:597,95187,910,51663,992,0001,999,0002,396,160
10Dec 28, 2022 16:597,95395,301,31864,011,0002,000,0002,396,160
11Dec 28, 2022 16:597,95391,797,73464,011,0002,000,0002,273,280
12Dec 28, 2022 16:597,96290,624,49364,081,0002,002,0002,273,280
13Dec 28, 2022 16:598,091128,057,49567,154,67102,289,664
14Dec 28, 2022 16:598,098147,535,43867,213,83802,281,472
15Dec 28, 2022 16:598,267130,819,54868,618,19302,256,896