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 17:01Bernard TeoBernard TeoScore: 10,447Success
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 17:0110,396114,489,62785,282,0001,003,0002,273,280
2Sep 6, 2022 17:0010,398108,356,04085,297,0001,003,0002,273,280
3Sep 6, 2022 17:0010,400111,901,86085,321,0001,003,0002,273,280
4Sep 6, 2022 17:0110,404115,915,92185,350,0001,004,0002,400,256
5Sep 6, 2022 17:0010,407109,216,79185,372,0001,004,0002,400,256
6Sep 6, 2022 17:0110,408109,177,30786,385,00002,273,280
7Sep 6, 2022 17:0010,420111,497,60385,483,0001,005,0002,400,256
8Sep 6, 2022 17:0110,421108,119,14285,492,0001,005,0002,273,280
9Sep 6, 2022 17:0110,422108,614,82086,505,00002,408,448
10Sep 6, 2022 17:0010,422109,649,04486,503,00002,400,256
11Sep 6, 2022 17:0010,430114,868,95686,569,00002,273,280
12Sep 6, 2022 17:0010,431113,212,01986,576,00002,273,280
13Sep 6, 2022 17:0110,433112,237,86085,590,0001,006,0002,273,280
14Sep 6, 2022 17:0110,433113,405,34986,595,00002,273,280
15Sep 6, 2022 17:0010,445113,402,53085,683,0001,008,0002,273,280
16Sep 6, 2022 17:0110,447113,022,34285,703,0001,008,0002,408,448
17Sep 6, 2022 17:0110,453120,891,30686,760,00002,396,160
18Sep 6, 2022 17:0110,455113,010,91685,780,000997,0002,273,280
19Sep 6, 2022 17:0110,459114,433,53484,811,0001,995,0002,404,352
20Sep 6, 2022 17:0010,461111,231,37384,831,0001,996,0002,273,280
21Sep 6, 2022 17:0010,461112,395,70485,827,000997,0002,273,280
22Sep 6, 2022 17:0010,463114,421,87485,845,000998,0002,273,280
23Sep 6, 2022 17:0110,468115,562,72984,888,0001,997,0002,273,280
24Sep 6, 2022 17:0010,485115,744,41986,025,0001,000,0002,392,064
25Sep 6, 2022 17:0011,752154,700,22997,538,01102,293,760
26Sep 6, 2022 17:0111,763175,237,37197,632,31502,289,664
27Sep 6, 2022 17:0111,773160,994,02397,718,33902,277,376
28Sep 6, 2022 17:0111,782158,343,46197,789,35902,281,472
29Sep 6, 2022 17:0011,784156,433,44897,809,36502,285,568
30Sep 6, 2022 17:0011,797171,496,70397,912,98702,256,896