QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#515947 | #4880. Network Transfer | Yoralen | AC ✓ | 222ms | 24256kb | C++14 | 1.2kb | 2024-08-12 12:01:29 | 2024-08-12 12:01:30 |
Judging History
answer
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<set>
using namespace std;
const int N=200005;
int n,m;
struct node{
double t,p;int i;
bool operator <(node A)const{return t<A.t;}
};
struct Op{double s,t,p;int i;}a[N];
bool cmp(Op A,Op B){return A.s<B.s;}
multiset<node>S;
double w,f[N];
int main(){
int i;
scanf("%d%lf",&n,&w);
for(i=1;i<=n;i++)scanf("%lf%lf%lf",&a[i].s,&a[i].t,&a[i].p),a[i].i=i;
sort(a+1,a+1+n,cmp);
double sp=0,k=1,b=0;
for(i=1;i<=n;i++){
double t0=a[i].s,p0=a[i].p;
while(S.size()){
node u=*(S.begin());
if(u.t<=(t0-b)/k){
f[u.i]=u.t*k+b;
double k1=(sp-u.p)/sp,b1=f[u.i]/sp*u.p;
b=b1+k1*b,k=k*k1;sp-=u.p;
S.erase(S.begin());
}
else break;
}
if(S.size()){
double k1=(sp+p0)/sp,b1=-t0/sp*p0;
b=b1+k1*b,k=k*k1;
}
else k=1,b=0;
// printf("%lf %lf\n",k,b);
sp+=p0;f[a[i].i]=t0+(a[i].t)/(p0/sp*w);
// printf("%.6lf\n",f[i]);
S.insert((node){(f[a[i].i]-b)/k,p0,a[i].i});
}
// printf("%d\n",S.size());
while(S.size()){
node u=*(S.begin());
f[u.i]=u.t*k+b;
double k1=(sp-u.p)/sp,b1=f[u.i]/sp*u.p;
b=b1+k1*b,k=k*k1;sp-=u.p;
S.erase(S.begin());
}
for(i=1;i<=n;i++)printf("%.9lf\n",f[i]);
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 5928kb
input:
2 10 0 100 2 4 200 1
output:
13.000000000 30.000000000
result:
ok 2 numbers
Test #2:
score: 0
Accepted
time: 1ms
memory: 5932kb
input:
2 10 30 200 1 10 100 2
output:
50.000000000 20.000000000
result:
ok 2 numbers
Test #3:
score: 0
Accepted
time: 1ms
memory: 5848kb
input:
1 10000000 0 1 42
output:
0.000000100
result:
ok found '0.0000001', expected '0.0000001', error '0.0000000'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
1 10000000 42 1 42
output:
42.000000100
result:
ok found '42.0000001', expected '42.0000001', error '0.0000000'
Test #5:
score: 0
Accepted
time: 0ms
memory: 5948kb
input:
1 10000000 42 10000000 42
output:
43.000000000
result:
ok found '43.0000000', expected '43.0000000', error '0.0000000'
Test #6:
score: 0
Accepted
time: 1ms
memory: 6004kb
input:
1 10000000 10000000 1 1
output:
10000000.000000101
result:
ok found '10000000.0000001', expected '10000000.0000001', error '0.0000000'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
1 10000000 1 1 100
output:
1.000000100
result:
ok found '1.0000001', expected '1.0000001', error '0.0000000'
Test #8:
score: 0
Accepted
time: 1ms
memory: 5956kb
input:
1 1 10000000 10000000 100
output:
20000000.000000000
result:
ok found '20000000.0000000', expected '20000000.0000000', error '0.0000000'
Test #9:
score: 0
Accepted
time: 149ms
memory: 24196kb
input:
200000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10000000 1 10000000 10...
output:
2000009999999.973632812 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 2000009999999.970214844 200000999999...
result:
ok 200000 numbers
Test #10:
score: 0
Accepted
time: 182ms
memory: 24196kb
input:
200000 1 10000000 10000000 22 10000000 10000000 62 10000000 10000000 71 10000000 10000000 73 10000000 10000000 82 10000000 10000000 15 10000000 10000000 60 10000000 10000000 26 10000000 10000000 35 10000000 10000000 83 10000000 10000000 58 10000000 10000000 84 10000000 10000000 23 10000000 10000000 ...
output:
1790041363636.668457031 1390577580645.437500000 1300784647887.233886719 1280812465753.343017578 1190840487804.888427734 1859583333333.647705078 1410498166666.955810547 1750241923077.269775391 1660420857143.140625000 1180833975903.718261719 1430416379310.602050781 1170834642857.327880859 178007260869...
result:
ok 200000 numbers
Test #11:
score: 0
Accepted
time: 204ms
memory: 24112kb
input:
199293 5 9504657 9159218 4 9229606 9939393 93 9949326 9400061 74 9049202 9678955 63 9856746 9805686 100 9900514 9492706 58 9077984 9828311 42 9082259 9783365 78 9815702 9654015 95 9655893 9753916 11 9027905 9930425 9 9210664 9496857 85 9488366 9132506 56 9416678 9238290 2 9475297 9343399 28 9442121 ...
output:
372606864554.930541992 212211534775.660522461 238948149662.627380371 263425611185.028106689 197063144013.541870117 270580494645.836364746 303467045798.100463867 237141228118.506896973 203504180187.103149414 360171498662.763305664 364170179095.385986328 219530866865.530151367 270186214835.377105713 3...
result:
ok 199293 numbers
Test #12:
score: 0
Accepted
time: 217ms
memory: 24156kb
input:
199775 5 9573917 9665464 57 9498813 9469832 81 9885957 9606395 14 9397765 9003071 9 9246019 9070405 26 9740136 9081183 11 9893308 9667485 60 9912483 9414387 94 9934996 9683245 7 9359993 9793294 90 9852046 9209808 22 9704268 9048813 52 9066664 9842295 49 9894656 9914370 56 9520915 9685732 36 9507809 ...
output:
275136188681.634155273 227063705577.071777344 355194309827.075439453 363385338618.804443359 329856159627.200805664 359600267866.451171875 269538859112.978759766 201263971424.150878906 368365549271.475524902 215596647879.302246094 338462086635.553222656 277864582191.816040039 291752383805.130249023 2...
result:
ok 199775 numbers
Test #13:
score: 0
Accepted
time: 206ms
memory: 24256kb
input:
199876 10 9569180 9097026 11 9805018 9888590 69 9859588 9812730 54 9708644 9290190 38 9672977 9335125 45 9617443 9706660 56 9670948 9431976 69 9705708 9008410 2 9091288 9600793 23 9064094 9794988 56 9750869 9563190 30 9234184 9600771 22 9681961 9478086 50 9410316 9590449 15 9604218 9991066 51 957349...
output:
179887507879.365661621 127724903099.131652832 141024141836.360931396 153787858998.041107178 147195733048.123565674 138618997279.592224121 124676275642.356750488 188810825750.278228760 169163511122.138061523 139088289036.243316650 162417585447.211090088 170108072542.121093750 143081618014.840301514 1...
result:
ok 199876 numbers
Test #14:
score: 0
Accepted
time: 216ms
memory: 24120kb
input:
199977 4 9602127 9565587 73 9111223 9419029 57 9833218 9019063 97 9020206 9577308 79 9062250 9637529 67 9457065 9295138 1 9448587 9234150 78 9535931 9639433 15 9247581 9592339 40 9768195 9797367 34 9649692 9879574 35 9727787 9190412 97 9260259 9150191 43 9851295 9229529 69 9724520 9333397 67 9676184...
output:
304491753262.704101562 340031067721.717163086 234313922207.092773438 290561445183.281250000 319806025766.091308594 474840344782.377258301 286089986044.610595703 441518236522.742553711 382411279203.415893555 398221219100.001831055 396587568674.278930664 238678764660.521972656 370475863739.343933105 3...
result:
ok 199977 numbers
Test #15:
score: 0
Accepted
time: 211ms
memory: 24140kb
input:
199077 6 9634388 9960151 22 9418114 9874787 41 9769850 9225397 37 9368769 9901425 8 9489208 9902249 82 9371370 9920615 49 9263226 9036325 88 9329155 9233456 23 9366876 9584570 56 9434611 9799061 9 9473832 9195956 44 9220704 9779369 72 9801558 9822981 43 9366955 9830926 27 9770139 9638731 78 9741872 ...
output:
283688147387.651062012 254552170732.421081543 256675980123.912353516 304680729443.361083984 192633843521.464355469 242706661005.178222656 170818527368.869140625 279445737170.246032715 229155389463.204833984 303032608931.469665527 245028698316.631103516 206387719766.851562500 251159922565.474365234 2...
result:
ok 199077 numbers
Test #16:
score: 0
Accepted
time: 130ms
memory: 11660kb
input:
199174 94 4939842 606 76 1166421 867 100 9051103 784 55 8172658 675 51 3743680 551 61 2613139 796 25 6619357 995 81 4244151 919 13 1565998 618 89 8971567 956 48 4453079 696 6 6507538 985 84 821657 762 98 5429287 786 27 6562208 661 86 286640 615 36 6512669 689 74 219589 615 49 8412173 719 58 8817089 ...
output:
4939848.446808510 1166430.223404255 9051111.340425532 8172665.180851064 3743685.861702128 2613147.468085106 6619367.585106383 4244160.776595744 1566004.574468085 8971577.170212766 4453091.606382979 6507551.149949342 821665.106382979 5429295.393617021 6562215.031914894 286647.393617021 6512680.579212...
result:
ok 199174 numbers
Test #17:
score: 0
Accepted
time: 135ms
memory: 11680kb
input:
199275 58 420812 937 34 5358924 565 84 341963 608 95 9557118 546 80 3131446 587 87 4631085 759 74 1944615 555 90 9739783 504 22 6129096 823 9 9113009 779 15 5896446 737 11 2838089 778 63 2887413 545 3 9842144 566 82 4824038 515 2 3489410 943 99 4094375 674 67 5967153 825 83 8442695 661 5 1099067 961...
output:
420828.155172414 5358933.741379310 341973.703448276 9557130.934039406 3131456.120689655 4631098.086206896 1944624.568965517 9739791.689655172 6129110.737547893 9113022.431034483 5896464.603448276 2838116.856189281 2887427.413793103 9842153.758620691 4824046.879310345 3489426.258620690 4094386.620689...
result:
ok 199275 numbers
Test #18:
score: 0
Accepted
time: 133ms
memory: 11756kb
input:
199757 100 8599274 773 87 2248916 983 76 6665957 948 34 8244088 933 17 4788589 623 6 4017807 722 19 4934229 616 11 202280 590 38 692193 527 18 9188184 884 97 2306679 771 19 9102374 572 34 2551259 547 96 6886224 621 32 3085867 871 17 6758447 763 57 1742348 667 52 4050359 520 18 808859 610 60 8347912 ...
output:
8599282.527126437 2248929.218552631 6665969.220000001 8244097.330000000 4788595.230000000 4017814.220000000 4934235.160000000 202285.900000000 692198.270000000 9188192.840000000 2306686.710000000 9102379.720000001 2551264.499375000 6886230.538125001 3085875.710000000 6758458.782631580 1742354.670000...
result:
ok 199757 numbers
Test #19:
score: 0
Accepted
time: 208ms
memory: 22340kb
input:
199301 55 9625480 9580 55 1972191 9544 50 2023060 7409 51 3155002 5100 49 5157066 8962 57 8573320 9043 52 5593516 7630 69 4095980 7228 37 9700572 7655 95 4873927 6900 49 8970656 7567 35 4513218 7294 83 90439 8204 19 2350487 9774 100 8833379 7311 70 8720440 6645 16 5196961 9762 63 7589832 6318 17 504...
output:
22664764.177565515 19072434.527585775 14847167.731277585 13479463.302474976 20842918.892615795 22479839.009491242 18374375.954983860 21677924.352299899 18966017.791119814 19820640.700588912 23346119.181337480 14514855.723563433 20704922.934125215 9826141.159492433 20068809.871940255 25071221.6776193...
result:
ok 199301 numbers
Test #20:
score: 0
Accepted
time: 210ms
memory: 21224kb
input:
199784 70 5106450 7012 8 8862184 6409 38 3313920 6644 90 1841972 6860 90 9511699 8604 83 5624399 9771 93 3616263 6180 86 6894122 9030 49 4263669 9105 11 4949103 5598 32 5380890 6955 48 8146280 6286 53 7123063 6952 11 9394568 8476 55 4759565 6568 78 6956343 7496 74 7811801 9766 52 5673038 8211 55 507...
output:
20569989.793816473 17924700.661386468 6678833.936280586 3781477.143651098 16565452.197708376 13829173.091952220 7161775.574898019 17739360.846301463 20493408.062243402 16664943.177233953 15857800.208163664 16526407.093700178 20285025.598995641 17776581.957404837 10634690.714593560 15012054.600691289...
result:
ok 199784 numbers
Test #21:
score: 0
Accepted
time: 200ms
memory: 19480kb
input:
199504 87 3284911 7920 70 8087820 7643 26 4604781 8931 34 5562076 8619 20 6201975 6720 98 9977988 8972 46 6605878 7152 95 2389753 7357 65 8826767 9661 24 5090545 8402 2 1791123 7868 49 9443698 5279 28 4155685 8121 8 3807424 7178 9 3021395 9299 93 225379 7716 41 5459773 5824 41 1420601 8155 89 744193...
output:
6416886.862677023 15527062.057008393 14488552.389338702 15826799.688600417 9289865.233567014 15136631.655248534 10288299.833090767 4661712.471318983 15976522.943961848 17111357.541173942 4630547.059034787 15007084.359228374 16615825.317790136 16415542.482735930 5457325.143733084 684855.404640625 120...
result:
ok 199504 numbers
Test #22:
score: 0
Accepted
time: 216ms
memory: 24140kb
input:
199447 66 1042403 67371 93 1128688 78245 76 5016768 50046 51 8688565 60236 62 7728578 73421 61 4914558 84844 51 4044583 90549 45 4037722 73419 85 533462 83816 56 832748 81898 38 2603184 60202 97 7543832 99993 32 8706211 91645 79 5544589 91922 58 8719389 94288 83 9443633 51194 58 710110 98781 29 9077...
output:
97353589.262384564 134963509.310395122 139517888.212167710 141786058.523868203 157334920.171919376 175394851.272493064 184140886.526915431 126378138.861691579 163471348.715229005 184991893.117473841 90962705.056617051 200054135.804037154 155247504.722035229 173087974.443245083 153779101.543324143 13...
result:
ok 199447 numbers
Test #23:
score: 0
Accepted
time: 215ms
memory: 24188kb
input:
199929 82 9220865 86552 59 2985547 66016 60 1340761 51929 90 7375534 79510 99 4418854 68267 87 6932503 96935 100 7034197 65152 55 9533354 87179 1 5096560 88788 73 974191 95082 21 6677774 96696 10 1176893 73873 11 5738833 74842 80 9957447 62211 17 4645574 77470 94 7679536 61562 25 3324950 83656 14 98...
output:
137442730.623493373 117719935.423058450 60788949.550756335 100808309.623688459 95137085.224476457 113655203.673625946 125979076.426203132 182717780.304835707 126235560.611785769 167628018.398791999 176362017.876926333 172963004.019419223 110101567.382932007 164701871.194242716 99290091.136359453 155...
result:
ok 199929 numbers
Test #24:
score: 0
Accepted
time: 211ms
memory: 24088kb
input:
199029 73 4701835 79195 8 2211183 66584 48 2631622 53813 30 8759994 85987 36 8773487 81715 6 6319225 90424 41 23811 53497 64 2331496 50938 10 9659659 75158 89 6082500 89664 91 8121141 51790 18 2474312 52613 82 2771456 90383 69 7001526 77641 71 2907404 97855 14 948572 53328 84 3604146 68532 7 2907887...
output:
197343781.133935004 146266455.203158557 160277245.026017487 172793852.192178190 199572245.445608258 169801859.050708830 64949674.506395072 189590139.181994408 118032789.573745668 127144382.914744586 178153214.122082710 83736576.602193773 143463781.904471695 135320085.159308553 193921930.410488725 73...
result:
ok 199029 numbers
Test #25:
score: 0
Accepted
time: 222ms
memory: 24204kb
input:
199673 56 2610387 845669 2 1687829 988340 72 3821139 870884 35 2813428 799092 7 1365018 803557 95 9357496 513441 25 731413 980028 93 8363930 565303 23 4733785 973636 18 167256 773886 29 51133 651716 90 3480326 674090 12 4953792 831943 51 4343808 520658 51 2719391 642184 85 3121609 691825 39 7026995 ...
output:
2663416920.978989124 1928512891.465408802 2270470176.705050468 2597243918.163269520 1455194752.908814430 2183638273.066699982 1692789012.785336018 2266073869.022416115 2496007785.562527180 2296006666.683316231 1246768433.833283424 2503127235.852543831 2051884673.886388779 1670260383.252927303 132997...
result:
ok 199673 numbers
Test #26:
score: 0
Accepted
time: 204ms
memory: 24124kb
input:
199393 73 8091358 636821 63 3610955 902862 64 5111999 556237 78 6533532 853174 48 686517 962833 17 8744218 893633 70 3721028 529352 98 1162071 874456 32 9296883 502388 30 308699 714994 100 4191990 607788 3 4777744 786151 83 6953281 811671 52 8756665 654068 97 981220 909737 97 6324379 990946 6 730619...
output:
1275130082.972575665 1493550552.930923939 973568760.578969121 1610876608.734158039 1917650576.822090626 1437555485.982601643 745082252.339813709 1766089887.567454815 1584227879.321433067 951064194.587329745 2018503334.660677910 1219497961.209502697 1549263972.680363178 930468945.024257064 1200936817...
result:
ok 199393 numbers
Test #27:
score: 0
Accepted
time: 208ms
memory: 24184kb
input:
199875 63 6269819 886681 17 5467813 721870 48 6402860 741591 18 253634 907256 77 2409927 663402 32 762162 815118 11 1743775 756777 7 6657703 601020 44 3859980 976923 47 5417008 792908 74 602223 509641 4 8410806 856919 62 9019038 832694 49 833878 650671 51 9243051 594701 8 9593416 844285 65 9921030 9...
output:
2213856003.125931740 1775683281.444612503 2166436262.260108948 1593306697.442422628 1943159460.190261602 2266283494.042722702 2305962466.387253284 1714438971.510931492 1944956047.588585377 1528248633.053511620 2319079253.772780418 1723020248.555582047 1847280158.089093685 1659435553.774400711 226694...
result:
ok 199875 numbers
Test #28:
score: 0
Accepted
time: 216ms
memory: 24060kb
input:
199493 80 3646291 6589211 78 3835801 9820358 84 3775894 7887279 69 1403559 7547266 40 2451237 5385669 29 2904241 6950241 65 6125738 7100303 30 3526246 6344762 98 844701 9815023 18 5933784 5196196 40 8335782 9624783 43 5474890 5645503 81 4386861 6220368 39 1603653 7528687 13 6625714 6639631 16 706689...
output:
10214158002.177747726 12572146296.170520782 12430331164.930345535 14939287831.837167740 14878605249.442443848 11989023568.212066650 15721325037.910507202 8103362035.451150894 17454389308.560123444 13196271301.770895004 15545715392.326297760 8679035263.780069351 14234787112.389560699 17532010551.8659...
result:
ok 199493 numbers
Test #29:
score: 0
Accepted
time: 221ms
memory: 24180kb
input:
199975 95 9127263 9824246 31 725793 7569723 72 5066755 8332179 9 5123663 8233302 69 4108380 6510726 43 2290963 9771814 6 4148486 9985610 39 3988744 5840025 14 5407800 5718449 27 6075227 5087718 10 9779149 9069107 56 9107953 7713115 56 1419484 6026900 32 6016510 8831954 72 4887544 9655430 27 269667 9...
output:
13937905496.846202850 10033778296.324613571 15207689460.111473083 10738075363.253953934 11827209682.295295715 15492533171.576795578 13480084569.657899857 14400171178.176799774 12982354715.382062912 14665395594.544481277 12092824838.966411591 11426666478.288406372 12620203552.038570404 10878713148.30...
result:
ok 199975 numbers
Test #30:
score: 0
Accepted
time: 215ms
memory: 24108kb
input:
199075 86 7305724 8126405 81 4918296 6090023 60 1390748 8810642 52 8843766 8148404 10 8463013 7635784 66 4308908 7593387 59 9473744 7133543 48 1820019 5301725 22 9970898 7292121 47 6216669 9208306 84 1222516 8546994 65 405370 9747164 27 8452108 5129623 33 8093724 5839029 26 813730 6967420 39 3538704...
output:
10721879434.659461975 10797502325.457639694 13464577925.986700058 16627307131.113809586 11616265493.267446518 12203486352.281848907 12909398946.928743362 14651536819.869092941 13101153739.143424988 11291805629.255893707 12310694615.643424988 15583041967.505313873 13108926037.786026001 14447914933.62...
result:
ok 199075 numbers
Test #31:
score: 0
Accepted
time: 185ms
memory: 15256kb
input:
199199 78151 308067 3510866 94 6357726 1383805 15 2657317 8797531 92 6497312 357768 66 1134727 3432114 28 7985088 8000696 13 147819 1655876 32 4881979 1216259 97 1470964 2232766 25 2929789 5183878 21 4171107 4419118 92 7436038 8910406 32 8680822 8565979 100 5307897 8959910 28 4773869 4268007 57 1347...
output:
335924.968889758 7945776.923182249 3336558.055798560 6583286.328104019 1513151.759311631 12296920.317677667 166073.393624283 5030871.173311889 1820619.976639807 5288502.809248805 4678750.757528305 11701064.207739979 10564865.514613152 11024857.017974675 5717138.807222188 1556387.378352419 6442303.97...
result:
ok 199199 numbers
Test #32:
score: 0
Accepted
time: 142ms
memory: 11616kb
input:
199681 594292 5789038 4364536 47 5583361 1412685 3 8981311 1101713 36 217414 8157858 7 5489360 880031 50 7371810 1431418 58 8170568 1612166 41 377610 8562820 5 1000928 2657627 33 8038099 2960000 100 8245697 1329846 4 3766590 9777839 7 5713444 6131898 5 7385110 6125691 82 3035698 5829090 65 4616843 3...
output:
5789045.344093475 5583389.058767413 8981312.853824383 217440.360181527 5489361.480805732 7371812.408610582 8170570.712750634 377624.408438949 1000932.471921210 8038106.819724984 8245699.237697966 3766606.452920450 5713454.317988464 7385125.879677343 3035707.808461160 4616848.238047963 8423434.943229...
result:
ok 199681 numbers
Test #33:
score: 0
Accepted
time: 141ms
memory: 11756kb
input:
199782 951648 8934366 5026718 9 7440220 1184668 91 272171 3405895 75 6568741 990652 36 2179636 8327948 65 9389755 4862140 7 1160181 6727240 51 840108 5909381 21 597159 8049784 53 8179541 5446522 70 4655931 8305983 17 2366518 645273 81 7779201 3889305 97 6764834 8067280 41 1297528 2614366 76 7885880 ...
output:
8934371.282119019 7440221.244859444 272174.578944105 6568742.040985743 2179644.751080231 9389760.109179024 1160188.069042335 840114.898409917 597167.458783079 8179546.723252716 4655942.072753792 2366518.678058484 7779206.976507070 6764842.477168028 1297530.747198544 7885881.625235382 6005127.5654464...
result:
ok 199782 numbers
Test #34:
score: 0
Accepted
time: 216ms
memory: 24080kb
input:
199013 2 5648444 6390891 30 4583777 4765203 91 6002297 9967339 67 2920106 5046393 16 1078536 9551957 15 4208514 8778670 95 6524454 7530040 44 5903729 8501282 33 3694577 8408932 62 771162 6157066 4 9717159 3022531 97 8386385 467293 82 5854615 1902200 68 1266157 8997519 45 2513227 4669366 78 8418928 5...
output:
422330846579.003662109 217302476200.060058594 388908111736.454528809 447421455718.807006836 473670311290.805053711 321064635269.459106445 403413314451.737487793 435703578221.712341309 378175228790.522155762 488886966001.813842773 140471687707.960052490 28129828435.560779572 127607157606.550933838 41...
result:
ok 199013 numbers
Test #35:
score: 0
Accepted
time: 213ms
memory: 24100kb
input:
199114 46 6162548 7053073 83 6440636 9761378 79 7293157 2271521 6 4304566 2846483 49 2735679 1967170 41 6226459 2209392 48 1849712 7677818 53 6366227 815139 41 593319 8833793 82 912605 3676292 74 6127392 4965964 98 4716936 6302023 45 2887238 4626902 61 5679015 5971812 3 8439414 6230450 94 6654831 42...
output:
13270785737.092395782 15888659942.513399124 19830440328.543418884 10219121022.593339920 8794729532.680343628 8508652523.297058105 16746925846.283027649 4058690357.133593082 15023451061.332023621 9036976049.470138550 9193518426.711095810 16576759694.158887863 12350448518.211042404 21371543825.4218025...
result:
ok 199114 numbers
Test #36:
score: 0
Accepted
time: 214ms
memory: 24156kb
input:
199596 87 9307876 2682550 45 5666271 9533362 67 3617151 4575704 58 8024669 5679277 86 7090312 4447791 60 5613182 5640114 89 4839326 2601404 63 4197502 3128996 49 123283 4291358 90 8718404 6419710 49 5235115 1942100 11 3316864 2136753 20 9919861 7417013 58 5058738 3137593 50 6701243 2758829 1 9923868...
output:
5524614624.603885651 8842445165.143138885 6717217887.153024673 5954728955.372818947 6451381042.313126564 5777733893.785732269 4118838152.138123035 5808315903.487151146 4612176056.152914047 8610704084.935934067 9364167101.827064514 7944757485.171150208 8539108645.909047127 5735633416.110412598 113787...
result:
ok 199596 numbers
Test #37:
score: 0
Accepted
time: 222ms
memory: 24160kb
input:
199697 39 4788847 3344732 94 2556263 4529537 55 4908011 1912590 98 6711639 8446664 20 3780588 1895708 82 2597993 9070836 41 7828941 7781885 80 4660000 475557 70 4686381 4907707 15 8859846 8906232 19 6678482 3885532 19 4614282 7971483 95 6952484 9950228 58 7135952 303374 4 4963073 4576809 17 495414 1...
output:
8080516207.396721840 15379520637.743480682 4704955625.285459518 23724826976.633949280 5498253763.458559036 21858676687.883754730 16920641339.400909424 1714686622.739753485 23125936060.864395142 23927692271.586738586 21539830987.976551056 15560365236.119438171 20731573992.100685120 14592285657.333755...
result:
ok 199697 numbers
Test #38:
score: 0
Accepted
time: 216ms
memory: 24236kb
input:
199798 83 2967307 8974210 56 9446256 4301520 43 6198872 9184068 37 431742 1022562 61 8135221 4567817 97 1984715 7468854 82 5851688 2896959 89 155631 2789414 78 4216345 365272 23 3968155 6425459 94 3088715 861669 20 8247345 4063108 70 9018241 2740338 47 1548808 7277667 63 889259 6137892 24 8731318 36...
output:
9585283617.960424423 8084038822.531387329 10472903001.085252762 1903914662.785333395 4825951818.898675919 7687860874.448448181 3528421731.619846344 3801412971.622039795 1828843662.404964447 6405828305.006868362 4479058921.669532776 5688131849.588280678 5708000433.463068008 8615588401.131771088 10519...
result:
ok 199798 numbers
Test #39:
score: 0
Accepted
time: 2ms
memory: 4088kb
input:
1360 49 9871429 9779574 40 9989546 534733 28 3556340 8555939 45 2305081 5937120 29 5096830 6921998 49 7191025 9278305 8 1298498 9627142 14 671882 3049863 76 7402068 6967792 30 4959332 8268659 69 4691507 7797825 22 2723063 1478222 99 2602570 2927804 66 9779683 6186660 50 706855 189678 58 8926331 5264...
output:
123331351.307860121 34603328.337053552 117294057.853423327 118724756.222694546 109278783.858188838 137076595.222913533 134482946.239140749 34527002.999288812 122234510.150622100 103418304.970578343 128510981.489846006 17110978.092679292 51474075.045188338 106097823.692130208 1057524.689448848 733576...
result:
ok 1360 numbers
Test #40:
score: 0
Accepted
time: 2ms
memory: 6036kb
input:
1842 93 5352399 376348 90 6879538 306716 20 9880335 860121 93 6025185 3737210 70 9451463 9594107 79 9208970 7676323 49 9321246 9774920 23 6167514 5363720 84 1965166 2616845 42 67641 5979374 47 6134874 4773961 31 9053615 7312952 74 9635193 5717915 63 1856896 8128249 5 8968685 1750762 73 2129100 39552...
output:
7987080.246971071 20278894.587575965 18320294.061010979 47350535.199269176 73982532.330522448 79242940.079600900 91559848.260600135 53356053.090179399 45696221.831925407 61057205.352011360 78364243.711648434 68764097.524488091 66605259.435126424 97835462.209477246 29811318.412371412 51047928.0782185...
result:
ok 1842 numbers
Test #41:
score: 0
Accepted
time: 2ms
memory: 4112kb
input:
1562 34 8497727 1038529 44 8736396 5111403 4 1171194 3164303 36 9745289 6570004 3 6141739 7042024 94 3562558 1107045 97 4646504 4698505 36 8965656 7934473 92 1495130 3041706 58 5175950 3498600 17 209463 6717394 43 7653543 3147682 53 1700949 3475322 59 1236619 326734 63 4894871 3311845 81 5398137 238...
output:
56900292.500892103 223642699.080259204 139709814.644436479 225822068.409823626 132960879.399119020 25062361.171212792 172965317.483260900 146396021.551930398 94295992.186698407 193221471.417156607 177992215.180593073 114510915.233794808 104870587.917749122 4380449.198041670 83564411.801527321 183113...
result:
ok 1562 numbers
Test #42:
score: 0
Accepted
time: 1ms
memory: 5928kb
input:
1043 86 1709320 1892199 5 2995165 5074875 96 2462055 5468486 76 6096614 4370095 41 496371 4489941 16 613636 9505064 42 7636118 4846283 46 4461287 248330 13 6058228 3466567 75 5317392 6050530 96 1652830 8660826 52 8950961 4015116 24 8733572 1041240 56 3313833 7492515 10 3156701 9905633 96 8667174 107...
output:
55728508.105634458 24155440.341680974 30021799.464732289 43517016.262328602 53263756.315417960 51213710.915723331 43989691.587027706 12049581.587600529 26940157.579822809 32066791.277844667 48039943.170489714 50652583.125881478 18099262.989191592 58206179.482019641 40418449.745618805 15434825.033026...
result:
ok 1043 numbers
Test #43:
score: 0
Accepted
time: 2ms
memory: 6016kb
input:
1525 30 7190292 2554381 59 9885158 4846858 84 8786049 7772668 16 9816718 2170185 74 7186648 1937858 39 7664716 7968490 83 5658866 4994061 55 4923786 2562187 21 621325 4148323 87 5458834 8793948 66 3096197 604258 57 2584023 9849845 91 733061 8798647 57 7726690 9434104 64 1418530 6690908 4 1869943 473...
output:
99509524.659475937 124746768.263116628 238953615.193233818 75827976.706799597 110266382.422735915 167850000.898466796 161967658.505839825 184761418.152153194 87603266.893328518 190877016.800510228 24126960.882943332 174123039.560947061 196206527.541234672 197568772.609294295 252320975.472603023 1801...
result:
ok 1525 numbers
Test #44:
score: 0
Accepted
time: 1ms
memory: 5928kb
input:
316 59 9188975 3868239 10 1555155 115859 26 5453579 247042 72 2822282 4185205 49 82066 6588164 75 5670503 7171636 83 9577189 1881903 17 7935150 4796220 33 4738599 2350579 56 417510 597470 97 647601 4861443 40 5843081 6719640 5 1819841 6829760 9 2504145 9651623 92 1334814 7014371 46 2616434 1788240 7...
output:
25295770.486411266 1657034.380344369 5846332.303283442 14063725.194988724 1173590.543654612 18383473.728952903 21350187.763546765 22220128.504249588 11031724.842690051 502932.661607208 5221978.625804259 26841423.843670979 26317074.274167266 15961440.516044606 16912327.180446047 4295986.517308291 240...
result:
ok 316 numbers
Test #45:
score: 0
Accepted
time: 1ms
memory: 5924kb
input:
139 8 9703080 4465013 64 3412014 9887842 14 6744440 2551224 12 9173609 1985295 87 4436699 4036081 94 24091 5569654 27 4902447 6805489 30 733291 2142781 49 9301697 7999632 69 558952 3340888 72 4722191 6613388 45 4443010 2554370 75 3885598 4587166 14 6917003 6817404 50 9596645 3608158 61 5885471 52546...
output:
49808572.782173097 83536742.191010416 71141235.252602130 26003670.699444570 32580177.978577357 64511504.304905809 71851346.002844214 18137195.012586109 61360909.288049057 18439854.181579158 64805623.296881631 27308308.830579937 76425232.582334101 64079292.016406976 45590861.591750138 67390688.787857...
result:
ok 139 numbers
Test #46:
score: 0
Accepted
time: 1ms
memory: 5956kb
input:
363 48 2848407 94490 13 2637649 9916722 2 732789 4855406 51 2893711 4561193 20 1126975 6708190 16 7075171 9191864 76 7892061 1920562 39 6228923 4456638 61 3864794 8424493 85 5667261 860114 46 6165558 8556820 54 773561 8389099 50 918220 7120381 3 6296726 9015889 5 5522831 5169242 69 4121374 8912580 9...
output:
3564198.079240434 38384664.542636648 12056978.276039936 33035516.675469287 35505049.313250802 29686269.611442681 20274188.219529737 23331133.186311737 25006369.145105850 9896480.711620778 31484838.908664159 26966227.754610546 38143885.815153770 37952386.198794745 22945751.352924757 24037696.97700803...
result:
ok 363 numbers
Test #47:
score: 0
Accepted
time: 1ms
memory: 5864kb
input:
186 92 8329378 5980864 75 4494508 4656001 90 7056784 7159588 95 6613815 2361283 57 448474 4156107 31 1428759 2622586 21 881675 2068340 48 1724555 6770495 69 3394759 8849354 1 5808704 3346636 17 7608925 5532956 67 7037846 4480725 29 582066 9910492 4 8373940 957478 59 3784660 6730326 80 2357277 760319...
output:
8451520.450246057 4748304.773009494 7286051.449294850 6806855.298680574 562187.728819996 2067663.752271209 1089997.160003778 2362423.385045627 7695970.208810890 6515934.523196034 7688659.881550341 7434423.295412421 3670385.398280848 8409160.321051866 3858730.163858696 3163201.490273936 7938737.23447...
result:
ok 186 numbers
Test #48:
score: 0
Accepted
time: 1ms
memory: 5872kb
input:
156 37 1474705 1610342 28 1384500 9460688 78 8347644 9463771 35 5300785 161374 90 7138751 6636728 57 8479838 6053308 62 8904423 2216118 58 2187053 4117056 86 7957857 4498407 18 917012 6090054 95 6716648 2443685 79 5704041 5282751 100 2647822 2443706 1 7753663 8123259 18 2046490 3515601 92 5626314 12...
output:
2957012.996773934 6972018.887173660 19389936.789457448 5447846.488536019 16878683.460286517 16710975.863693679 13198424.828554336 4556052.544011135 19208531.816055644 1680056.503468445 9897221.717258304 11204977.071620129 21648556.033880394 20124373.985125944 3676386.998637088 11331614.824257545 722...
result:
ok 156 numbers