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:50Bernard TeoBernard TeoScore: 6,464Success
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:506,285128,966,32152,168,58602,281,472
2Dec 28, 2022 16:506,287118,528,08052,185,76702,281,472
3Dec 28, 2022 16:506,298107,896,28352,270,37302,285,568
4Dec 28, 2022 16:506,43977,123,95353,446,00002,273,280
5Dec 28, 2022 16:506,46079,890,81752,604,0001,011,0002,273,280
6Dec 28, 2022 16:506,46079,364,02553,617,00002,256,896
7Dec 28, 2022 16:506,46380,687,90452,632,0001,012,0002,400,256
8Dec 28, 2022 16:506,46482,578,60352,637,0001,012,0002,273,280
9Dec 28, 2022 16:506,46581,987,94153,663,00002,273,280
10Dec 28, 2022 16:506,46782,211,24753,672,00002,404,352
11Dec 28, 2022 16:506,48081,950,14151,796,0001,992,0002,396,160
12Dec 28, 2022 16:506,48485,828,45951,822,0001,993,0002,273,280
13Dec 28, 2022 16:506,48484,307,87051,827,0001,993,0002,273,280
14Dec 28, 2022 16:506,48480,141,77751,828,0001,993,0002,273,280
15Dec 28, 2022 16:506,49177,943,17651,884,0001,995,0002,400,256