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 listJun 4, 2024 07:59GraceGraceScore: 5,046Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 07:595,00963,145,06441,573,00002,396,160
2Jun 4, 2024 07:595,01467,819,41741,616,00002,396,160
3Jun 4, 2024 07:595,01468,401,29641,613,00002,404,352
4Jun 4, 2024 07:595,01867,638,24340,633,0001,015,0002,396,160
5Jun 4, 2024 07:595,01866,891,21040,632,0001,015,0002,400,256
6Jun 4, 2024 07:595,02567,467,99840,690,0001,017,0002,400,256
7Jun 4, 2024 07:595,03872,121,05640,822,000995,0002,273,280
8Jun 4, 2024 07:595,03869,649,58739,826,0001,991,0002,273,280
9Jun 4, 2024 07:595,03969,944,50940,826,000995,0002,392,064
10Jun 4, 2024 07:595,03972,772,27339,833,0001,991,0002,404,352
11Jun 4, 2024 07:595,03972,426,16640,830,000995,0002,273,280
12Jun 4, 2024 07:595,04067,077,31841,836,00002,510,848
13Jun 4, 2024 07:595,04070,422,70939,843,0001,992,0002,400,256
14Jun 4, 2024 07:595,04070,142,40239,842,0001,992,0002,273,280
15Jun 4, 2024 07:595,04165,790,34240,848,000996,0002,273,280
16Jun 4, 2024 07:595,04370,634,47939,864,0001,993,0002,273,280
17Jun 4, 2024 07:595,04669,817,19539,890,0001,994,0002,273,280
18Jun 4, 2024 07:595,05564,902,12240,959,000999,0002,404,352
19Jun 4, 2024 07:595,218117,912,51143,306,46702,285,568
20Jun 4, 2024 07:595,223119,059,37043,354,65402,289,664
21Jun 4, 2024 07:595,226104,230,84943,378,22002,293,760
22Jun 4, 2024 07:595,226107,585,69643,375,82102,289,664
23Jun 4, 2024 07:595,227105,868,18543,384,54702,285,568
24Jun 4, 2024 07:595,231122,065,78543,416,64402,281,472
25Jun 4, 2024 07:595,233104,544,73743,437,71802,269,184
26Jun 4, 2024 07:595,237110,678,38443,469,80002,273,280
27Jun 4, 2024 07:595,24299,770,88443,508,43502,293,760
28Jun 4, 2024 07:595,94270,618,95648,314,0001,006,0002,273,280
29Jun 4, 2024 07:595,95275,109,19948,394,0001,008,0002,396,160
30Jun 4, 2024 07:595,96274,227,84149,482,00002,273,280
31Jun 4, 2024 07:595,96573,150,54449,508,00002,273,280
32Jun 4, 2024 07:595,96775,338,55349,528,00002,400,256
33Jun 4, 2024 07:596,06374,135,96049,320,0001,006,0002,396,160