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 listMay 16, 2021 07:26Dmitry DolgopolovDmitry DolgopolovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2021 07:2800000no run stats recorded
2May 16, 2021 07:2700000no run stats recorded
3May 16, 2021 07:2600000no run stats recorded
4May 16, 2021 07:2600000no run stats recorded
5May 16, 2021 07:2600000no run stats recorded
6May 16, 2021 07:2600000no run stats recorded
7May 20, 2021 05:1028,961265,429,125237,375,0003,004,0002,289,664
8May 20, 2021 05:1028,967259,969,048237,420,0003,005,0002,359,296
9May 20, 2021 05:1228,969269,189,164237,436,0003,005,0002,449,408
10May 20, 2021 05:1228,970267,180,099237,442,0003,005,0002,510,848
11May 20, 2021 05:1228,971266,398,973237,455,0003,005,0002,289,664
12May 20, 2021 05:1028,971267,980,605238,456,0002,003,0002,514,944
13May 20, 2021 05:1228,972261,163,106238,465,0002,003,0002,510,848
14May 20, 2021 05:1028,976267,217,721237,498,0003,006,0002,502,656
15May 20, 2021 05:1228,978271,562,506237,510,0003,006,0002,510,848
16May 20, 2021 05:1228,980270,528,909238,528,0002,004,0002,416,640
17May 20, 2021 05:1228,981268,827,590238,535,0002,004,0002,289,664
18May 20, 2021 05:1028,989267,945,410238,602,0002,005,0002,514,944
19May 20, 2021 05:1028,997263,992,895237,681,0002,995,0002,289,664
20May 20, 2021 05:1029,004266,304,453237,735,0002,996,0002,289,664
21May 20, 2021 05:1229,005265,920,224238,747,0001,997,0002,510,848
22May 20, 2021 05:1029,005271,004,996238,747,0001,997,0002,510,848
23May 20, 2021 05:1229,006261,951,783237,752,0002,996,0002,289,664
24May 20, 2021 05:1029,011263,336,802237,793,0002,997,0002,510,848
25May 20, 2021 05:1229,051304,847,500241,119,70302,285,568
26May 20, 2021 05:1229,075300,361,132241,322,61702,293,760
27May 20, 2021 05:1229,077300,294,456241,335,86002,285,568
28May 20, 2021 05:1029,083302,063,915241,385,85002,170,880
29May 20, 2021 05:1029,086291,327,843241,413,25702,293,760
30May 20, 2021 05:1029,095317,383,340241,490,07902,293,760