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 listSep 6, 2022 18:16Bernard TeoBernard TeoScore: 8,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 18:168,11788,689,50766,370,0001,005,0002,392,064
2Sep 6, 2022 18:168,12189,655,84267,404,00002,273,280
3Sep 6, 2022 18:168,12494,785,13466,424,0001,006,0002,277,376
4Sep 6, 2022 18:168,12991,891,05867,472,00002,273,280
5Sep 6, 2022 18:168,14197,456,82867,569,00002,273,280
6Sep 6, 2022 18:168,15297,990,06266,653,0001,009,0002,273,280
7Sep 6, 2022 18:168,15295,074,60466,649,0001,009,0002,404,352
8Sep 6, 2022 18:168,16989,419,78165,807,0001,994,0002,273,280
9Sep 6, 2022 18:168,16993,177,61065,806,0001,994,0002,514,944
10Sep 6, 2022 18:168,18889,889,72065,962,0001,998,0002,396,160
11Sep 6, 2022 18:168,19997,724,94167,051,0001,000,0002,396,160
12Sep 6, 2022 18:168,313142,718,63168,995,63202,281,472
13Sep 6, 2022 18:168,37895,718,86569,539,00002,510,848
14Sep 6, 2022 18:168,447131,645,85370,106,67402,269,184
15Sep 6, 2022 18:168,530136,902,17370,801,86802,281,472