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 30, 2022 16:19Jack FrigaardJack FrigaardScore: 5,118Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 16:195,09564,988,63340,273,0002,013,0002,285,568
2Dec 30, 2022 16:195,09870,124,00639,292,0003,022,0002,293,760
3Dec 30, 2022 16:195,10064,283,78240,314,0002,015,0002,289,664
4Dec 30, 2022 16:195,10061,403,65540,311,0002,015,0002,285,568
5Dec 30, 2022 16:195,10472,049,67040,343,0002,017,0002,285,568
6Dec 30, 2022 16:195,11063,678,22538,375,0004,039,0002,285,568
7Dec 30, 2022 16:195,11567,015,23739,420,0003,032,0002,285,568
8Dec 30, 2022 16:195,11866,049,64440,458,0002,022,0002,277,376
9Dec 30, 2022 16:195,11970,411,24340,462,0002,023,0002,277,376
10Dec 30, 2022 16:195,21166,412,29841,238,0002,011,0002,285,568
11Dec 30, 2022 16:195,23867,720,92740,446,0003,033,0002,285,568
12Dec 30, 2022 16:195,26071,415,79842,641,0001,015,0002,285,568
13Dec 30, 2022 16:195,416120,058,52644,950,02402,293,760
14Dec 30, 2022 16:195,417100,593,01344,961,16502,252,800
15Dec 30, 2022 16:195,490104,223,34945,565,37302,301,952