QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#58167 | #2173. What's Our Vector, Victor? | Y25t | AC ✓ | 174ms | 9796kb | C++20 | 1.8kb | 2022-10-24 23:08:15 | 2022-10-24 23:08:18 |
Judging History
answer
#include<bits/stdc++.h>
#define lf double
#define eps 1e-10
#define N 505
int n,m;
lf y[N][N],d[N];
inline void sol(lf a[N][N],int l){
for(int i=1,t=1;i<=l;i++,t++){
while(t<=m&&fabs(a[i][t])<eps){
for(int j=i+1;j<=l;j++)
if(fabs(a[j][t])>=eps){
std::swap(a[i],a[j]);
break;
}
if(fabs(a[i][t])>=eps)
break;
t++;
}
if(t>m)
break;
for(int j=m+1;j>=t;j--)
a[i][j]/=a[i][t];
for(int j=1;j<=l;j++) if(j!=i)
for(int k=m+1;k>=t;k--)
a[j][k]-=a[j][t]*a[i][k];
}
}
lf x[N];
inline void cal(lf a[N][N],int l){
for(int i=l;i;i--)
for(int t=1;t<=m;t++) if(fabs(a[i][t])>=eps){
x[t]=a[i][m+1];
for(int j=t+1;j<=m;j++)
x[t]-=a[i][j]*x[j];
break;
}
}
lf a[N][N],b[N][N];
bool vis[N];
inline lf val(int i,lf xi){
x[i]=xi;
cal(a,n-1);
lf res=0;
for(int i=1;i<=m;i++)
res+=(x[i]-y[n][i])*(x[i]-y[n][i]);
return res;
}
int main(){
scanf("%d%d",&m,&n);
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++)
scanf("%lf",&y[i][j]);
scanf("%lf",&d[i]);
}
for(int i=1;i<n;i++){
a[i][m+1]=d[i]*d[i]-d[n]*d[n];
for(int j=1;j<=m;j++){
a[i][j]=-2*y[i][j]+2*y[n][j];
a[i][m+1]+=-y[i][j]*y[i][j]+y[n][j]*y[n][j];
}
}
sol(a,n-1);
for(int i=n-1;i;i--)
for(int t=1;t<=m;t++) if(fabs(a[i][t])>=eps){
for(int j=t+1;j<=m;j++){
b[j][m+1]-=a[i][j]*y[n][t];
for(int k=t+1;k<=m+1;k++)
b[j][k]+=a[i][j]*a[i][k];
}
vis[t]=1;
break;
}
for(int i=1;i<=m;i++) if(!vis[i])
b[i][m+1]+=y[n][i],b[i][i]+=1;
sol(b,m);
cal(b,m);
cal(a,n-1);
for(int i=1;i<=m;i++) if(!vis[i]){
lf tmp=x[i];
lf L=0,R=1e5;
while(R-L>=eps){
lf mid=(L+R)/2;
if(val(i,tmp+mid)<=d[n]*d[n])
L=mid;
else
R=mid;
}
x[i]=tmp+L;
break;
}
cal(a,n-1);
for(int i=1;i<=m;i++)
printf("%.7lf\n",x[i]);
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 164ms
memory: 9720kb
input:
500 500 60.00268893933372283 70.35885554610950976 -8.98574176457012186 46.16014112676185732 66.31422279348288384 29.03050764912902082 -35.06996828144599476 -59.10319321730690234 67.85808505028276727 20.30232033048615392 62.38784996896146140 59.92659390534240060 -36.26787439344059294 30.8251981981496...
output:
19.2131419 6.6116010 21.4200483 56.9386480 -89.7160475 92.9322890 70.9576914 11.4955427 -48.3685940 38.6938107 50.0774293 7.6286117 2.2148058 -37.3139909 -95.5061214 -67.7834767 -6.4342258 45.2469435 -27.5157455 19.9638643 30.1755275 12.0377721 2.5780487 -3.3820092 -42.4453995 -34.1563421 -99.671959...
result:
ok accepted
Test #2:
score: 0
Accepted
time: 162ms
memory: 9704kb
input:
500 500 -20.46791708061053328 -78.90373004342441732 -47.09421721341704625 49.96697218958462372 48.99528416466444014 -46.87780686216100889 73.68284736943891744 -53.69249802982882613 -92.37158007019175443 -97.95346943385396798 -47.79109018973426259 82.31965483504592385 -72.09718577745493917 -32.376534...
output:
-1.5215345 4.5693936 -55.1537400 -30.8206123 -4.5300711 -40.7480491 -98.0817466 -70.6794336 33.7580006 40.8307872 -79.9701024 28.7611061 74.1169382 99.2006610 63.1466616 13.4872386 87.8152809 -79.2485169 -94.8371769 -18.8682559 -7.2220658 -62.7088839 -80.0894198 4.8574914 40.6553089 -82.9080054 -88....
result:
ok accepted
Test #3:
score: 0
Accepted
time: 174ms
memory: 9760kb
input:
500 500 91.75754360584323877 -74.07465057030329092 -30.06919963013949371 -22.45376960826932589 -94.33818252302211249 95.43185666705545600 -35.93139380204742395 -46.28091101025437837 20.25588702053946122 -31.98355965847254367 96.27926708531694544 17.21195108047088240 -16.00480323252260462 -14.1553994...
output:
26.9679741 -85.5196888 33.0051525 56.4491768 96.2024192 2.1449650 46.1593011 -10.5524773 95.1878089 89.0367035 53.3099140 47.8109365 -44.1149361 -38.6811779 20.3000465 -79.5595674 -83.2187281 81.0406420 63.6096929 -32.5949599 -3.1428774 68.7425054 -41.8089630 31.6750384 34.8582793 -48.4293912 -88.78...
result:
ok accepted
Test #4:
score: 0
Accepted
time: 159ms
memory: 9720kb
input:
500 500 53.59239375857157484 1.29576452891167548 -55.60357761919549802 2.89491049833583247 -72.25117082444128869 -44.92736039007480997 6.81675337705620166 -46.20517542139523925 20.56179110027964896 99.93596620202598046 -30.87710828002636276 60.42621397022924157 79.91458345844398536 94.56182305252031...
output:
25.3319262 6.0513200 41.1514607 -77.2156886 76.9918318 80.5690490 93.0687005 -33.3878340 -33.1932708 -89.2763179 60.9935609 21.8236315 -91.8804470 76.3755848 26.4845929 -41.6773656 16.2208646 81.9466268 29.0695144 -11.9289031 65.5465322 -3.0757963 22.7293553 59.3227121 18.4340601 79.1365986 -69.5479...
result:
ok accepted
Test #5:
score: 0
Accepted
time: 169ms
memory: 9796kb
input:
500 500 -63.61543927507285190 43.87221058298641196 8.16924114047013461 -34.92232278546450175 91.80142804719758942 -76.82013016900501157 25.06001121373941487 48.24958448628115093 65.82846176112221315 33.19899446519090702 84.05389321600614494 -78.49637158041961982 87.99406312213668002 -60.859516869891...
output:
8.1348570 -23.7572800 -99.8667844 78.5968205 4.6867649 -52.3549579 -60.6525808 45.1086830 75.5451605 -86.7222099 46.0292484 -47.9542216 -96.3155709 1.0581436 63.3717929 96.9692462 99.7310480 87.2653588 4.4381986 4.1533346 77.9599117 -84.9324343 -31.3165067 28.6289546 37.7323790 -1.3356318 -49.792762...
result:
ok accepted
Test #6:
score: 0
Accepted
time: 1ms
memory: 4736kb
input:
24 114 19.60728784212125220 62.05571106800468328 -77.66722345143722350 83.32150488873739391 85.61849285200199233 -61.26186974500755866 54.01645372221616981 -19.69713224000579999 -10.16958551834513003 -18.69109461054532062 9.59051520125903778 91.21514401069063638 89.60632230190051928 -51.201061482129...
output:
8.3279245 27.9326545 97.4485477 38.2072390 85.8049893 55.0701353 -74.2501531 86.4572969 -48.8800373 -27.2805808 97.3582966 4.2324608 37.0980043 -34.4643518 -1.5236392 -92.8553756 -54.0708032 -60.1336032 -22.7042045 45.5175843 65.4606327 66.0913053 97.7823075 -58.6648038
result:
ok accepted
Test #7:
score: 0
Accepted
time: 1ms
memory: 4728kb
input:
46 97 43.01678189681189224 87.56570778950447220 9.14039085211038582 26.33206129795307504 -24.34885933455943530 0.05861471454515765 -70.42820734313679054 59.02215026766580763 -79.72741868434044932 35.60017247547804686 25.77535585268205409 92.78420121683043931 50.59296099595243845 -61.7776387073462913...
output:
64.5172937 -56.6306591 59.5290285 55.2455202 -29.4472603 87.7589596 96.8978195 75.6628911 -36.8708263 -61.2330330 0.5528113 -9.8891315 29.9531218 -41.1586462 -49.7377872 -30.5905138 -66.7430755 -7.5137526 84.5156760 55.3489883 -92.8959515 -84.3339545 -7.9363804 -95.5548969 -88.3104845 -30.2198023 -1...
result:
ok accepted
Test #8:
score: 0
Accepted
time: 6ms
memory: 5948kb
input:
15 284 21.00862660821213979 21.01836955459566525 -92.59898566394279840 72.83891547702586422 37.19660542291052252 58.75752575321905624 -58.77746253675046972 -75.78702662529354939 -51.08831966203057817 37.59103345051687484 78.06776201507187807 -47.64951581683278903 86.22301376779532234 87.983435491574...
output:
33.5096748 75.4424945 25.6720597 -29.4747499 86.9098726 -24.1426764 -91.9114091 -79.6981526 60.5223490 -92.8324071 -0.5997838 17.5927942 31.7435366 35.9136950 53.4357981
result:
ok accepted
Test #9:
score: 0
Accepted
time: 2ms
memory: 7200kb
input:
19 424 -16.81700811299913312 -99.00108212106096062 -91.34139981256581109 60.88738598253169698 96.60168904677493629 25.16047301803423863 39.17587188905130802 -88.89020758325538907 16.66405739466397051 14.19779632163533734 -12.13768283737013576 94.71465700089734696 -4.46422341014425683 99.590922359294...
output:
-4.6350033 -62.5708903 -96.3321190 95.0447822 -54.6656283 83.4765830 -88.3307621 34.7362035 -64.0510560 -25.6075230 46.1972653 2.3726297 -10.0591982 -13.7828266 22.2036128 59.3679087 97.2518185 -57.7627450 -81.9636405
result:
ok accepted
Test #10:
score: 0
Accepted
time: 2ms
memory: 5836kb
input:
39 240 -17.49573620249577743 -14.20168813856275847 3.40454276185926119 75.25294275126461230 3.64382503532986846 -66.13690704428722711 9.54219281803891306 4.33429550843416678 -93.68468592834675235 -17.02270905586702554 18.67022731122480650 63.43606748481644786 14.80457613629361902 -82.867111145937784...
output:
-88.1974479 -18.1604330 61.7461273 -72.3137747 -79.0298388 92.2914336 42.0575149 11.7564137 82.4585444 -5.8003271 -82.1595515 70.7779120 3.1606938 -87.6700166 77.5499157 -33.8061104 -31.9221988 -7.7412657 -6.0627118 -25.2708137 -0.8671823 23.4795809 48.6432344 -62.6908545 -64.3664926 25.8115522 -98....
result:
ok accepted
Test #11:
score: 0
Accepted
time: 2ms
memory: 4548kb
input:
94 37 -97.74217056704389961 -34.72707124177070170 -5.18996578341727854 89.27537859475728510 -15.17925192708750615 -58.80623411956585045 6.67768502706442746 9.27371520989450460 -0.76898730002019988 -12.16379417034083588 -97.04781848445374237 -4.61915628555445323 67.16463977789777573 -98.0799613713748...
output:
-15.9733615 100.4523121 41.9567512 79.1503947 12.2980458 -9.3871489 83.3680198 132.6939558 -22.1479718 -137.3072014 49.2335978 -100.4261573 3.6848803 -39.9933887 68.3884983 -79.3261654 -47.8263024 -49.5817593 78.8985847 -27.0214393 2.3357984 -159.2246503 26.5014276 -58.6391530 -30.6626204 -100.07488...
result:
ok accepted
Test #12:
score: 0
Accepted
time: 4ms
memory: 4336kb
input:
81 31 51.81180666086186193 4.42519101702015405 -99.52683614255568045 -78.73219118895721635 79.13631206663259832 -62.14210001674649675 77.01555907099057663 96.10429867603977527 -71.63979952372569926 31.92804200050832719 2.39923469427824898 -15.81312766092013078 -3.78675758288882491 -96.89700984284483...
output:
62.0971090 -25.9432374 148.2304697 -166.1484360 -77.3536430 -30.5731099 22.4539383 -73.3681961 136.8967931 -45.9923994 -56.4638639 64.5307328 74.8489686 -29.1892954 -49.5473945 -129.4227557 -15.5724741 38.2372022 44.1399888 -25.3020893 65.4954313 -68.1731107 170.6788199 -32.3717333 26.1918667 -86.24...
result:
ok accepted
Test #13:
score: 0
Accepted
time: 25ms
memory: 5360kb
input:
368 15 22.30119005935810605 43.42786705247092982 -32.28926734891730632 -57.98761219344181939 -45.31478884634214666 53.04804763990063066 46.08811206966319673 -45.60493877541469487 -14.51504417311522843 85.52370945799654578 92.80145323913885136 94.08183990667501462 96.53825049915519685 -51.75960693925...
output:
49.1233719 -0.2289224 -80.9329518 406.2240692 -4.2043439 -376.5824663 54.3725501 -51.0305774 533.2837393 476.2114860 -116.6800810 285.1455973 216.3368858 394.5027342 258.1660777 -5.1554490 -43.7072199 -22.4341033 8.8209452 20.6404692 -2.0578325 -28.0942152 0.6716934 17.2392958 -1.4845646 -42.6490632...
result:
ok accepted
Test #14:
score: 0
Accepted
time: 61ms
memory: 5768kb
input:
417 40 44.68655184642963718 -99.57530073803870607 -14.93036383109003395 23.41593487735389090 29.30749689971099770 -12.17392273069064856 79.34058425615467058 -35.84876537980680666 72.50759393990819035 83.68078753407559134 -5.69786294576199737 -6.93653269724951826 87.39999249217245847 64.6174490928109...
output:
-479.7408165 -223.3452474 8.1192115 74.5443390 -158.1951907 454.2717647 0.3362899 1.5994987 170.2376463 -178.3985923 78.0301718 -140.2896826 235.5399465 -22.8382474 -106.4330015 -29.3951417 274.6832834 -141.7764883 -58.7342830 23.8102296 -13.9091741 118.6658384 167.1316834 -426.6798474 3.4031209 -19...
result:
ok accepted
Test #15:
score: 0
Accepted
time: 2ms
memory: 4568kb
input:
117 39 93.39662242328662956 49.47614796316665320 88.12818584496389462 -41.60092472064344804 -93.31577807190411988 40.70668323938937760 97.74228125485441865 16.47170421620938896 19.20357999198667187 6.73479762799897230 51.00910155069405505 -23.32922732808970068 12.15698653971175247 26.846191807017191...
output:
-24.1041902 49.7881826 -84.9835954 -182.4108824 63.9491054 -36.0076953 -77.9611406 150.1449915 20.5079030 146.9712988 -37.5566971 76.7247611 12.1031013 275.7581613 73.7876059 9.6470384 32.0226055 -93.7712970 -40.4612388 17.7335656 54.9028596 13.3021766 152.3758709 -21.8700629 56.2184871 -80.7993335 ...
result:
ok accepted
Test #16:
score: 0
Accepted
time: 41ms
memory: 6948kb
input:
241 283 -19.74999113405426954 79.74118587123592761 -66.12366621234484398 23.16116059608839350 -90.51891922181988548 -16.33163848510163518 -55.57111970452539396 13.82071494892652197 0.16803096716331822 -90.49296540512135323 95.43035627948418664 39.25164085774440537 85.85545452213210638 86.25017616286...
output:
45.1299408 -55.0823652 4.8180125 42.5318186 -10.4920047 17.4782564 70.0209715 -23.9764822 -58.7747576 43.2656421 53.1603375 -92.9333205 59.3384446 -85.7420375 88.2124337 -96.8074519 44.0915840 62.0274409 -78.2139636 -81.4716654 -96.8009555 -70.6614588 -63.8539852 68.2175501 31.7311265 -79.9589635 -9...
result:
ok accepted
Test #17:
score: 0
Accepted
time: 27ms
memory: 6020kb
input:
234 170 17.48242787918205465 -6.23520728156945836 -58.20418797754270201 72.96983900160395820 -57.35562673978773773 23.50789751949704964 -93.48884020852364074 -58.58187880824885241 -6.27698524763198407 30.85797535881991394 15.89004512612999065 47.23272911191250500 46.93072199569382974 28.367228113369...
output:
25.0488093 27.0516490 114.1910562 -84.5789077 -5.9352218 -112.4620383 -106.5672162 55.1351432 58.3088522 -21.7965218 -101.5045698 4.1054416 -43.0132161 -20.9748613 13.6893069 21.8177279 37.9299008 29.5649458 10.4082851 -32.0443741 6.7192810 -76.7581765 -5.9022756 -16.5861589 -10.8116112 18.1609892 -...
result:
ok accepted
Test #18:
score: 0
Accepted
time: 72ms
memory: 7408kb
input:
426 246 71.66651361980424895 -37.13107603142846358 -28.40069303830554759 -10.19303738189702813 -40.17751195221595140 80.86389914715766736 1.66282015418795481 26.86828575747655634 7.53315494638275140 5.60609191203955959 16.16504461034760709 19.69955383812136063 -60.18599916098141733 57.91579148537024...
output:
81.8973398 -81.4769564 -91.3756032 28.9917550 49.0827512 -56.9615414 -16.9034176 -8.9944925 -81.3930662 -5.3617011 -80.8373724 -112.5942029 69.6094691 -59.6115103 -28.1856183 -52.7016020 -28.9734796 51.0999314 -62.8313950 -38.0108143 -17.8911013 61.3496402 -65.2254457 50.0082576 25.4077010 3.0593485...
result:
ok accepted
Test #19:
score: 0
Accepted
time: 25ms
memory: 6640kb
input:
190 284 95.33837930303232611 -41.86466971541977955 34.60737779146913340 86.42312952325917763 -62.09721991997125912 52.95486745168355469 -60.47601569570841917 52.36070938755642601 78.02362095964224409 -40.03509120445565372 -83.80692034017873482 -22.71023924588195086 -96.86106094837492719 -40.94740162...
output:
64.1338237 85.4160334 52.9689672 -47.5134255 27.0584106 44.7111858 37.3888845 -85.9305861 74.3997745 4.2737631 4.6143702 -81.2273552 -30.5874067 75.2880240 51.5730144 -37.4450381 -90.9067948 77.4120749 -85.3554826 -74.9095749 -67.9574762 66.3204146 -84.3456932 18.5625706 25.0726777 -16.6074491 22.55...
result:
ok accepted
Test #20:
score: 0
Accepted
time: 29ms
memory: 5724kb
input:
355 70 -56.70334470987275211 83.83574979083198286 -5.81321312184857675 -19.10716154891068186 16.13137087617899113 -92.96665311525518405 -24.53366679341564804 -37.69497211956019100 85.70887749812533229 -4.68107417305449758 73.65067115386159458 11.42163179112867510 -40.68482028628190506 99.62559275702...
output:
34.7012503 -40.9745873 133.2022008 199.4313918 -215.8915968 227.4371126 -123.2073243 -94.5278624 101.3297404 -57.9256560 -199.6069959 -192.4135631 -213.2294315 -139.9370320 127.7292172 117.6775091 20.1598562 -10.7717923 172.4642657 28.4459230 46.0305273 -106.3317118 139.4384063 215.2053212 213.30185...
result:
ok accepted
Test #21:
score: 0
Accepted
time: 2ms
memory: 5824kb
input:
3 256 -78.12078435409665644 -85.08018381555004339 87.27205179005167679 223.75860580275852385 21.40601932440704047 9.30524175131506581 97.69241472114146063 183.70431698693087696 20.78669854557880114 -66.93205030620063667 -81.82893737964754166 71.55186936559947242 73.33954619520272900 -79.946056691508...
output:
88.2230997 -57.5451650 -59.8314786
result:
ok accepted
Test #22:
score: 0
Accepted
time: 3ms
memory: 4300kb
input:
5 62 65.67809116043918038 -6.95511245917114707 -65.58594103434151634 -24.98238854102574180 -67.64097332382888794 228.65240929183204344 -28.14639570969237070 81.15495829921940185 52.15853584132665333 -60.21000033537702478 17.11911053485283674 185.00177462895109670 97.86755108938794478 -40.32231891383...
output:
-32.5686541 -43.8915527 32.4539793 51.1354107 93.1677807
result:
ok accepted
Test #23:
score: 0
Accepted
time: 4ms
memory: 6028kb
input:
2 288 67.61542933343602613 47.25973109181069276 55.13980825108462369 -3.30426408588533604 -40.66692809464620240 167.60932009470940329 36.89409537586234933 30.54619728617115015 86.81691326794248198 -52.65998100097790768 -80.55976539875601361 229.44900096368024833 -36.19022124198538393 -30.51418398431...
output:
94.7941188 95.2359470
result:
ok accepted
Test #24:
score: 0
Accepted
time: 3ms
memory: 6116kb
input:
2 285 -73.49177140120454510 -27.45921977176388395 71.97435646756392202 -11.36332241290563161 -67.41256152462275963 79.18940613722345745 -83.02790342763361764 -3.00818194921774307 95.64056891698483298 -76.94037376060684608 69.82459223195203890 168.62048209786297548 -22.19881633373093166 -56.253430626...
output:
-84.1346253 -98.6423473
result:
ok accepted
Test #25:
score: 0
Accepted
time: 3ms
memory: 4544kb
input:
3 90 -80.47872995421107589 43.14208059911129567 57.43992229711068376 57.74639348045803899 -28.84828191978905920 86.94632424083388855 -50.35702772129035765 140.97797732099354562 91.43729149053109495 91.54935218332136060 -80.66735336723134253 227.76796873221641704 97.48224581178627091 28.6090833518682...
output:
-70.9520212 -11.4950048 41.3564935
result:
ok accepted
Test #26:
score: 0
Accepted
time: 5ms
memory: 4540kb
input:
189 1 58.20260994210622130 68.67758954964745044 -19.59536415957194322 -12.42121673471461918 3.64325992063163540 -30.46552521233776645 -46.87401011352478974 88.94910269066244268 53.50792334672570405 90.68612616445304297 -40.41474055830889256 -30.43526744898518643 72.26612568067025677 62.3780757071544...
output:
1222.8258685 68.6775895 -19.5953642 -12.4212167 3.6432599 -30.4655252 -46.8740101 88.9491027 53.5079233 90.6861262 -40.4147406 -30.4352674 72.2661257 62.3780757 -55.4933039 65.3551914 -96.7499279 1.1673217 -42.1402371 -34.1387324 -5.6678755 -37.6134468 73.7502268 -43.7835376 73.3815947 -44.4484640 8...
result:
ok accepted
Test #27:
score: 0
Accepted
time: 5ms
memory: 4600kb
input:
176 2 64.69868387712475055 -27.91921028014630224 -35.62410375680170205 46.95212302978166008 46.20202416344471885 11.91453444287495245 44.88399112031871141 33.90929126197823962 6.50449209474628276 -22.99563630094168332 66.75691023795118895 98.45710690993425374 11.03714286060825600 38.3844801382377056...
output:
510.3056793 769.9705441 -25.5207187 3.3445304 0.2844112 -30.7921892 16.7510134 -28.6746218 -22.5364902 29.8793296 71.7776120 58.6600966 40.7548972 20.0168500 44.3765253 79.6210726 -18.8370354 -60.8947604 13.9656878 9.2159785 21.2362240 -7.5564347 -9.9791940 44.8761859 5.5381500 10.4559001 -18.942032...
result:
ok accepted
Test #28:
score: 0
Accepted
time: 4ms
memory: 4280kb
input:
142 1 2.61917874832131758 -44.49335970449552491 -89.95075503127318939 12.71322648591490179 -52.43006486889640883 30.50437191800213554 34.55669292055185338 -99.07301933969634433 54.67370989914240909 82.56871783156776701 35.28440404839267330 23.24306531642055518 2.32687053783197939 96.1049017411075396...
output:
1013.3616905 -44.4933597 -89.9507550 12.7132265 -52.4300649 30.5043719 34.5566929 -99.0730193 54.6737099 82.5687178 35.2844040 23.2430653 2.3268705 96.1049017 -73.3031318 -87.0108940 -16.7953932 99.2030484 -86.7067581 -55.3928028 62.9640962 62.5356635 77.7676058 -58.5195385 34.7655161 82.7478196 -7....
result:
ok accepted
Test #29:
score: 0
Accepted
time: 10ms
memory: 4860kb
input:
269 1 -18.11564699214282825 48.89329814876245450 10.25015011623035832 25.32240200911952854 75.51469006374665582 -76.79568060899211446 -19.63802183502471621 33.17947978970394729 -48.94987597943094215 -73.78919575498612460 70.21565201752056851 -39.47666698703496024 -21.62615675669682958 86.27099155645...
output:
1276.3635381 48.8932981 10.2501501 25.3224020 75.5146901 -76.7956806 -19.6380218 33.1794798 -48.9498760 -73.7891958 70.2156520 -39.4766670 -21.6261568 86.2709916 80.5607232 49.4105014 17.5751250 69.4593022 32.8349881 72.2832650 55.2420024 84.6603953 63.9140314 28.7817436 45.7219978 -48.0310577 -19.6...
result:
ok accepted
Test #30:
score: 0
Accepted
time: 18ms
memory: 5228kb
input:
365 1 23.10990626783959101 -19.34586909615229899 -6.96875501077262527 0.34456297554396542 -68.98648584155537833 45.25601970715359812 68.60001376171371135 36.16207162122566388 -10.16330581679738998 -75.81533995340706156 -6.26078062613449049 -22.83426846904002616 -0.38841161702536908 -54.0019017863873...
output:
1603.3971758 -19.3458691 -6.9687550 0.3445630 -68.9864858 45.2560197 68.6000138 36.1620716 -10.1633058 -75.8153400 -6.2607806 -22.8342685 -0.3884116 -54.0019018 5.3900424 -52.2238079 -90.5253590 -27.0279321 -22.9669072 82.5413963 98.0193069 -1.4447863 52.6635152 59.0915575 -11.9939134 -14.9270000 -7...
result:
ok accepted
Test #31:
score: 0
Accepted
time: 2ms
memory: 4160kb
input:
1 50 64.85923222597955373 142.33999735768676942 50.35893895506274021 127.83970408676995589 22.25990417897902773 99.74066931068624342 31.69844616118842850 109.17921129289564419 41.11605242885241296 118.59681756055962865 -14.53903472845199474 62.94173040325522095 7.16711415864197932 84.647879290349195...
output:
-77.4807651
result:
ok accepted
Test #32:
score: 0
Accepted
time: 0ms
memory: 4060kb
input:
1 35 -63.96499900778515979 92.42594280702650167 -97.65209571809808153 126.11303951733941631 -16.94036411896613004 45.40130791820746481 31.27236822709244279 2.81142442785110802 59.66364729851866855 31.20270349927733378 -13.91940073632100905 42.38034453556234382 84.38071434215464706 55.919770542913312...
output:
28.4609438
result:
ok accepted
Test #33:
score: 0
Accepted
time: 0ms
memory: 4108kb
input:
4 40 -78.88287946648640059 -16.62811043870746630 55.42580123616482979 -27.60828113441841936 42.27328257616783702 -4.44671157404496853 76.96604175426281813 -89.54380830984523243 41.72058886140729328 191.53589735859455345 72.64002654217250665 -9.32083710196556581 70.57806486032919224 13.08783991774646...
output:
-70.5684557 -19.6098819 59.4284328 13.5376635
result:
ok accepted
Test #34:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
5 13 -30.20478063995581408 -21.92814177313326240 -42.44461805817634570 53.26364498645679646 -38.29485661681562192 178.49998050244400360 79.33616890572326952 -36.55946469637649443 70.66985014615084992 -35.10446941162146572 -27.84666177369450679 231.22874657286951106 -36.45626834700239272 -47.12700376...
output:
-64.0326688 -44.4819886 -78.7996366 -83.6188572 62.4559957
result:
ok accepted
Test #35:
score: 0
Accepted
time: 2ms
memory: 4132kb
input:
4 30 -52.27220939583720849 -21.57455471727385543 -92.94275176104298453 -2.08091573560969323 222.18345742802782183 31.93363561461731592 79.52292552785885960 20.52784410115411617 -75.35177279991810906 148.93820933276847995 90.67502095256182315 6.20398392101894558 -47.20102188425261147 -70.824847184737...
output:
81.7674991 42.5492992 62.6790866 53.3160163
result:
ok accepted
Test #36:
score: 0
Accepted
time: 2ms
memory: 3936kb
input:
32 3 65.85785916178218713 6.85831609194293890 -15.30976888031534600 -75.30692283941316134 -65.15190131352440517 4.24801038535771625 -39.15741921390454650 -29.82560345081593312 53.72937478242073439 -11.81599701215840525 -4.05299000922640573 -11.25984288284671209 65.93865938982881403 -58.2166489679021...
output:
103.2517405 110.2254593 305.8537344 -86.3297390 -13.7304944 25.9848701 -5.3022842 -41.8563494 67.8352286 -32.5977284 24.9049545 4.2042061 28.9907910 -24.9332238 -78.7676825 -39.9881240 -10.6634766 -14.7691176 17.8661918 36.4002997 -14.4578467 6.7280998 18.8418120 -35.7585004 -32.8390935 56.8390069 -...
result:
ok accepted
Test #37:
score: 0
Accepted
time: 2ms
memory: 3884kb
input:
38 2 -11.00959245879337800 -98.54947151225621838 87.90194151190249272 79.43936287611617786 -74.90189040412091970 -11.83750916384980201 17.01024400929949820 47.32337864655207227 -50.71076964359703965 88.34814581531549038 -57.48722708019155903 69.10969047227212059 -63.64323574333847944 46.273308018178...
output:
396.0861725 26.3842223 9.3705935 28.3711734 -65.1175109 -57.9433440 -18.4091090 6.3970630 -5.3261060 -9.5211192 -16.7080568 26.0401538 23.5711286 7.7486617 -31.6386956 57.2529314 -39.7708780 44.9642281 -5.9048401 15.4450412 -15.5786543 -28.3548478 30.0306362 73.5664046 17.7806957 51.0417538 9.029782...
result:
ok accepted
Test #38:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
13 3 72.24227664015296568 -18.55475164866786031 -43.11613144157464461 -19.60013839034118632 -49.91944199079070188 56.95177036488686895 36.13145534554163874 24.03291645605759186 -2.76856941433743486 6.55848694395515963 95.16901416342369657 88.75458089509112369 64.94847015738687901 255.715363806645768...
output:
-42.2790832 72.8115075 131.5106350 -30.2531006 -43.6917370 15.3889364 33.7670940 24.6412085 -26.5714519 25.7009585 44.2361124 3.0233263 39.0605320
result:
ok accepted
Test #39:
score: 0
Accepted
time: 2ms
memory: 3988kb
input:
7 3 50.23373989604388612 -69.88780252595731213 -57.22906978031703318 72.98567895437884090 -79.89238323261915298 95.92483451230395985 73.09642064722774535 325.02755887566917181 -43.98084472900853825 -62.70100814910448861 51.85828895150689277 27.97126637152686612 50.19393264295089807 -27.7406974710397...
output:
22.8298173 -125.7005327 144.2885062 16.9320132 89.6182500 -48.6168271 -18.5517358
result:
ok accepted
Test #40:
score: 0
Accepted
time: 2ms
memory: 3928kb
input:
19 3 -95.01393013899175344 31.59516925395340081 -3.67075244178249704 -89.77833166653650210 -18.85584753567273708 -50.84872526166284246 -87.16802093411190810 -32.09059765388832375 61.26348422715224729 23.73763770129502859 -97.41812087078032789 31.23032882316439895 -76.51134982540250462 67.44597527526...
output:
-121.4298121 289.6540475 -0.4369442 6.4094517 20.5415205 -45.1530802 -18.4752523 -19.5849198 60.8694296 39.4266899 -29.5132803 -13.8810702 -78.6988811 -68.2597879 51.8076250 5.0475181 -11.2505665 24.2311798 -8.2615636
result:
ok accepted
Test #41:
score: 0
Accepted
time: 2ms
memory: 4084kb
input:
22 28 62.22846464524795351 5.52663569851108605 59.49083017069543189 -96.51619459249974398 14.39031059433443716 -72.01045224882811624 95.36731661679002059 62.99349464476318872 -65.24414346153614019 -97.86066379894597844 92.43138700007429520 -28.20042145250897647 76.61643639268277184 -57.8696335739639...
output:
-29.9223419 -99.7447788 60.9397733 -50.3332766 -0.8521510 97.9041908 -36.6116069 28.1709789 67.2863742 -92.0418555 -71.0894058 -93.6142937 -41.8656600 35.2058999 1.8827811 -98.8741729 -86.2066784 -34.9271534 -73.5686410 -41.8047740 -72.7321550 -61.2730769
result:
ok accepted
Test #42:
score: 0
Accepted
time: 3ms
memory: 4184kb
input:
33 29 60.98557245693638151 -18.07931759228927149 47.71722790226277766 60.44200815872247290 15.78747444985293669 27.02244757659153152 -68.15148066296292484 -14.75753957216141998 -81.13645066198384370 69.20252380370021683 -84.97403737237749510 42.69315642512637510 -61.23527084314732605 -22.48730719942...
output:
36.6423459 29.9376437 -42.5425307 -7.2000902 19.6780195 -54.2188425 -9.3397368 -23.6950744 -1.0387898 86.1108988 -32.1043140 -163.5411943 -6.5877446 45.2147215 -86.1894258 59.1589660 28.1557623 -98.0346773 -2.5951660 95.6475713 -74.0959737 94.6447932 -83.3505644 -88.9520023 59.7508496 -90.2143597 -9...
result:
ok accepted
Test #43:
score: 0
Accepted
time: 3ms
memory: 4000kb
input:
24 14 -17.40138662805254910 55.03045505086637945 49.70539016308549662 15.26128344392927261 77.78369228783481049 75.64393879487477079 -92.13067565639920531 81.94847875525715608 -72.78803589017901743 -63.06606871805424674 49.23417172729224944 -78.33066588806227060 -55.64576453861675986 -94.46348476940...
output:
-8.8210851 -47.3760114 14.6601360 80.7480337 -108.3285487 51.0237592 -8.5796406 -44.6981615 65.3202031 -29.9324510 -52.6806207 -43.8542217 -15.1460240 75.6539344 -18.1828022 -23.0201279 -30.7231839 -16.3335417 -37.3826466 -95.4541824 41.7853359 13.7118949 -61.3756930 36.7689896
result:
ok accepted
Test #44:
score: 0
Accepted
time: 0ms
memory: 4032kb
input:
12 6 90.76755547853997541 40.86624230264283142 17.87869966661719445 98.08085221620558514 62.38376631439496123 42.38025343316073190 76.29870786465647825 -27.10931954515942266 80.08309062453179195 50.50807728486387305 96.60736437520210984 -75.85430013538719152 315.04833172222373605 82.1123285886446865...
output:
-58.1633085 -93.0219211 82.6020851 21.9843851 7.0921232 46.3222793 56.9905937 -74.8802418 -38.9946592 57.0640029 -47.8079642 15.5971756
result:
ok accepted
Test #45:
score: 0
Accepted
time: 2ms
memory: 4012kb
input:
24 18 -87.49764639603955629 -47.74586257973560777 48.59043969065740498 -80.41410235408326912 28.89032206299071959 -47.13669365527315591 28.49575702908228436 73.78279256909192441 -13.32054095999075116 50.44405826937537540 -12.24037261107096697 -75.85092891984008645 85.28969143528902919 -68.7066743703...
output:
-26.6652109 55.0014846 11.0527190 17.8533318 72.7647136 60.8471946 47.1236139 123.7433556 -43.7716939 35.1997137 -75.2559401 64.0098575 7.2003618 -19.4769020 49.8652361 83.3904874 -92.5697402 -7.2915941 -82.7529746 81.8040991 -17.0250990 13.9521353 74.6285685 30.2688658
result:
ok accepted
Test #46:
score: 0
Accepted
time: 2ms
memory: 3892kb
input:
5 1 -98.92874737593162138 61.13121144302337484 -55.35187132540717414 31.04973951571832913 -12.86232323817209533 153.48461134875867629
output:
54.5558640 61.1312114 -55.3518713 31.0497395 -12.8623232
result:
ok accepted
Test #47:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
5 1 74.45601861721232240 -88.25221705818179885 -21.89425418617103958 51.81808193090810732 -65.37432640384588467 220.12839308526943682
output:
294.5844117 -88.2522171 -21.8942542 51.8180819 -65.3743264
result:
ok accepted
Test #48:
score: 0
Accepted
time: 2ms
memory: 3684kb
input:
2 2 4.14909935574205235 -78.28709659608364291 49.35646372696943018 -45.22408328403919597 19.66777996170694109 106.04657364268864228
output:
39.6133081 -43.9599876
result:
ok accepted
Test #49:
score: 0
Accepted
time: 2ms
memory: 3820kb
input:
3 3 78.43191720848898285 -62.52454077645417385 -29.56285570729887979 202.64545693825559169 -94.21198895074385860 -45.13275298277459058 39.17395136772466913 167.87300349011442790 -8.34170007575511363 1.09250804587503580 -60.95208781815404109 173.09105656783955851
output:
3.1678071 80.9070099 92.2069485
result:
ok accepted
Test #50:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
2 3 -39.02285862135088479 96.05974306394270457 192.78968611015349666 -92.31646382797036665 95.94080691707665665 202.03332590641781508 80.44236050212563782 -92.11837389867663717 111.53034736239179381
output:
-30.9993932 -96.5629116
result:
ok accepted