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 17:02Bernard TeoBernard TeoScore: 7,952Success
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 17:027,93394,515,98063,852,0001,995,0002,273,280
2Dec 28, 2022 17:027,93492,503,51864,856,000997,0002,273,280
3Dec 28, 2022 17:027,93787,906,20963,884,0001,996,0002,273,280
4Dec 28, 2022 17:027,94090,141,23563,907,0001,997,0002,273,280
5Dec 28, 2022 17:027,94589,243,92163,947,0001,998,0002,400,256
6Dec 28, 2022 17:027,94991,019,90263,978,0001,999,0002,273,280
7Dec 28, 2022 17:027,95188,607,23963,995,0001,999,0002,510,848
8Dec 28, 2022 17:027,95289,085,09364,005,0002,000,0002,273,280
9Dec 28, 2022 17:027,95290,844,29265,005,0001,000,0002,273,280
10Dec 28, 2022 17:027,95289,896,83864,999,000999,0002,392,064
11Dec 28, 2022 17:027,95490,259,91565,015,0001,000,0002,273,280
12Dec 28, 2022 17:027,96186,191,90965,078,0001,001,0002,273,280
13Dec 28, 2022 17:028,094131,426,57567,178,91402,273,280
14Dec 28, 2022 17:028,096134,586,52567,197,32902,289,664
15Dec 28, 2022 17:028,101134,111,62867,241,78002,273,280