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 27, 2024 13:52GraceGraceScore: 5,920Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:525,80774,282,12746,192,0002,008,0002,285,568
2May 27, 2024 13:525,80873,160,22746,198,0002,008,0002,273,280
3May 27, 2024 13:525,81574,113,07746,256,0002,011,0002,379,776
4May 27, 2024 13:525,82172,769,23046,305,0002,013,0002,277,376
5May 27, 2024 13:525,82376,829,74446,314,0002,013,0002,285,568
6May 27, 2024 13:525,82570,408,55646,330,0002,014,0002,273,280
7May 27, 2024 13:525,82671,110,23846,341,0002,014,0002,277,376
8May 27, 2024 13:525,83576,227,78348,429,00002,285,568
9May 27, 2024 13:525,84171,362,53447,468,0001,009,0002,265,088
10May 27, 2024 13:525,85477,149,40148,587,00002,277,376
11May 27, 2024 13:525,86175,547,67947,634,0001,013,0002,285,568
12May 27, 2024 13:525,89473,265,23046,927,0001,996,0002,265,088
13May 27, 2024 13:525,91277,578,15547,069,0002,002,0002,265,088
14May 27, 2024 13:525,91376,756,14847,074,0002,003,0002,285,568
15May 27, 2024 13:525,91775,961,82948,106,0001,002,0002,285,568
16May 27, 2024 13:525,92077,879,14548,132,0001,002,0002,285,568
17May 27, 2024 13:525,92271,525,49747,145,0002,006,0002,285,568
18May 27, 2024 13:525,94571,324,51247,333,0002,014,0002,285,568
19May 27, 2024 13:525,96176,071,96748,467,0001,009,0002,285,568
20May 27, 2024 13:525,98775,179,99846,711,0002,981,0002,269,184
21May 27, 2024 13:526,00376,386,09447,836,0001,993,0002,260,992
22May 27, 2024 13:526,00972,947,60748,879,000997,0002,363,392
23May 27, 2024 13:526,04077,438,17548,129,0002,005,0002,269,184
24May 27, 2024 13:526,16470,284,23249,154,0002,006,0002,269,184
25May 27, 2024 13:526,639122,631,45155,105,53702,285,568
26May 27, 2024 13:526,666121,197,50555,324,83202,293,760
27May 27, 2024 13:526,676132,024,58055,408,52202,289,664
28May 27, 2024 13:526,792126,802,82756,375,34402,293,760
29May 27, 2024 13:526,925119,201,80957,476,58502,297,856
30May 27, 2024 13:527,125141,022,50059,138,79502,301,952