QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#880429 | #2173. What's Our Vector, Victor? | eggegg185 | AC ✓ | 121ms | 11808kb | C++14 | 2.5kb | 2025-02-03 12:11:52 | 2025-02-03 12:11:52 |
Judging History
answer
#include <iostream>
#include <cmath>
using namespace std;
int d,n,p[505],cnt = 0; double a[505][505],x[505][505],e[505],v[505][505],A[505][505],ans[505];
template<class T> //cool! I have learned this to read matrixs.
void gauss(int n,int m,T a) {
int cur = 1; for(int c = 1; c <= m; c++) {
for(int i = cur+1; i <= n; i++) if(fabs(a[i][c]) > fabs(a[cur][c])) swap(a[cur],a[i]);
if(fabs(a[cur][c]) < 1e-9) continue;
for(int i = 1; i <= n; i++) {
if(i != cur) {
double rat = a[i][c]/a[cur][c];
for(int j = 1; j <= m+1; j++) a[i][j] -= a[cur][j]*rat;
}
} for(int j = m+1; j >= 1; j--) a[cur][j] /= a[cur][c]; cur++;
}
}
int main() {
//freopen("P8141_1.in","r",stdin);
cin.tie(0)->sync_with_stdio(false);
cin >> d >> n; for(int i = 1; i <= n; i++) {
for(int j = 1; j <= d; j++) cin >> x[i][j]; cin >> e[i];
}
for(int i = 2; i <= n; i++) {
for(int j = 1; j <= d; j++) {
x[i][j] -= x[1][j];
a[i-1][j] = 2*x[i][j]; a[i-1][d+1] += x[i][j]*x[i][j];
} a[i-1][d+1] += e[1]*e[1]-e[i]*e[i];
} gauss(n-1,d,a);
for(int i = 1; i <= n-1; i++) {
int s = 0; for(int j = 1; j <= d; j++) if(fabs(a[i][j]) > 1e-9) {s = j; break;}
p[s] = -1;
}
for(int i = 1; i <= d; i++) if(p[i] != -1) p[i] = ++cnt,v[cnt][i] = 1; p[d+1] = 0; //damn, I almost forget that
if(!cnt) {
for(int i = 1; i < n; i++) {
int s = 0; for(int j = 1; j <= d; j++) if(fabs(a[i][j])>1e-9) {s = j; break;}
ans[s] = a[i][d+1]+x[1][i];
}
} else {
for(int i = 1; i < n; i++) {
int s = 0; for(int j = 1; j <= d; j++) if(fabs(a[i][j]) > 1e-9) {s = j; break;}
for(int j = s+1; j <= d+1; j++) {
if(p[j] != -1) v[p[j]][s] = -a[i][j];
}
}
for(int i = 1; i <= cnt; i++) {
for(int j = 1; j <= d; j++) {
for(int k = 1; k <= cnt; k++) A[i][k] += v[i][j]*v[k][j];
}
}
for(int i = 1; i <= cnt; i++) {
for(int j = 1; j <= d; j++) {
A[i][cnt+1] += v[i][j]*v[0][j]; //... I forgot the negative.
}
}
gauss(cnt,cnt,A); for(int i = 1; i <= d; i++) if(p[i] != -1) ans[i] = A[p[i]][cnt+1];
for(int i = n-1; i >= 1; i--) {
int s = 0; for(int j = 1; j <= d; j++) if(fabs(a[i][j]) > 1e-9) {s = j; break;} ans[s] = a[i][d+1];
for(int j = s+1; j <= d; j++) ans[s] -= a[i][j]*ans[j];
}
double ss = 0,rr = 0;
for(int i = 1; i <= d; i++) ss += ans[i]*ans[i],rr += v[1][i]*v[1][i];
rr = sqrt(rr); for(int i = 1; i <= d; i++) ans[i] += v[1][i]/rr*sqrt(e[1]*e[1]-ss)+x[1][i];
}
for(int i = 1; i <= d; i++) printf("%.12f ",ans[i]);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 121ms
memory: 11808kb
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.213142023385 6.611601038416 21.420048270899 56.938647806646 -89.716047468625 92.932289006352 70.957691600300 11.495542779804 -48.368594049866 38.693810721017 50.077429206961 7.628611624186 2.214805650994 -37.313990842786 -95.506121410632 -67.783476672554 -6.434225799388 45.246943408083 -27.515745...
result:
ok accepted
Test #2:
score: 0
Accepted
time: 120ms
memory: 11752kb
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.521534508171 4.569393572513 -55.153740004391 -30.820612308120 -4.530071117471 -40.748049092809 -98.081746638514 -70.679433566925 33.758000578798 40.830787198731 -79.970102366052 28.761106145494 74.116938176865 99.200660973369 63.146661596814 13.487238625398 87.815280900267 -79.248516870493 -94.83...
result:
ok accepted
Test #3:
score: 0
Accepted
time: 120ms
memory: 11348kb
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.967974084036 -85.519688759167 33.005152508055 56.449176789784 96.202419205132 2.144964979661 46.159301078158 -10.552477288225 95.187808923413 89.036703466432 53.309913996350 47.810936480910 -44.114936152254 -38.681177884895 20.300046489058 -79.559567382965 -83.218728126525 81.040641963121 63.6096...
result:
ok accepted
Test #4:
score: 0
Accepted
time: 120ms
memory: 11484kb
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.331926191043 6.051320026649 41.151460686640 -77.215688579233 76.991831845731 80.569049005148 93.068700536927 -33.387833984874 -33.193270807305 -89.276317853030 60.993560885387 21.823631458045 -91.880447013679 76.375584755434 26.484592919316 -41.677365575043 16.220864618511 81.946626785872 29.0695...
result:
ok accepted
Test #5:
score: 0
Accepted
time: 119ms
memory: 11048kb
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.134857017261 -23.757279986730 -99.866784367373 78.596820540033 4.686764929762 -52.354957924735 -60.652580816424 45.108683034021 75.545160517844 -86.722209874066 46.029248423327 -47.954221614334 -96.315570851923 1.058143648577 63.371792870110 96.969246244319 99.731048021325 87.265358819892 4.438198...
result:
ok accepted
Test #6:
score: 0
Accepted
time: 1ms
memory: 8168kb
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.327924488993 27.932654492595 97.448547681715 38.207238998066 85.804989257105 55.070135263273 -74.250153132709 86.457296889892 -48.880037253650 -27.280580787122 97.358296555171 4.232460753215 37.098004327929 -34.464351756248 -1.523639178611 -92.855375626479 -54.070803163299 -60.133603217842 -22.704...
result:
ok accepted
Test #7:
score: 0
Accepted
time: 0ms
memory: 8168kb
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.517293736370 -56.630659128521 59.529028450545 55.245520194310 -29.447260313187 87.758959551372 96.897819466739 75.662891115222 -36.870826302343 -61.233032989164 0.552811313556 -9.889131531024 29.953121835778 -41.158646197483 -49.737787207053 -30.590513831462 -66.743075483208 -7.513752617013 84.51...
result:
ok accepted
Test #8:
score: 0
Accepted
time: 2ms
memory: 8684kb
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.509674789060 75.442494451599 25.672059689137 -29.474749895520 86.909872597574 -24.142676411365 -91.911409070407 -79.698152616666 60.522348973893 -92.832407090550 -0.599783799645 17.592794168660 31.743536602219 35.913695027841 53.435798119996
result:
ok accepted
Test #9:
score: 0
Accepted
time: 3ms
memory: 9448kb
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.635003317029 -62.570890276021 -96.332119036086 95.044782160547 -54.665628341899 83.476583035952 -88.330762121474 34.736203539033 -64.051056008115 -25.607522966286 46.197265293028 2.372629748101 -10.059198161153 -13.782826562231 22.203612760934 59.367908710308 97.251818453269 -57.762745006499 -81....
result:
ok accepted
Test #10:
score: 0
Accepted
time: 1ms
memory: 8424kb
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.197447907978 -18.160433047765 61.746127263029 -72.313774717808 -79.029838785169 92.291433580137 42.057514880968 11.756413736997 82.458544356045 -5.800327121341 -82.159551522139 70.777912039053 3.160693800779 -87.670016644803 77.549915661103 -33.806110356402 -31.922198804219 -7.741265694583 -6.06...
result:
ok accepted
Test #11:
score: 0
Accepted
time: 0ms
memory: 10348kb
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.973361539313 100.452312126468 41.956751215586 79.150394745435 12.298045811095 -9.387148949513 83.368019762485 132.693955798145 -22.147971800142 -137.307201400184 49.233597807214 -100.426157294447 3.684880349259 -39.993388717825 68.388498346674 -79.326165386151 -47.826302373311 -49.581759343845 7...
result:
ok accepted
Test #12:
score: 0
Accepted
time: 1ms
memory: 10216kb
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.097108992666 -25.943237364567 148.230469703844 -166.148436046210 -77.353642962655 -30.573109863113 22.453938269519 -73.368196061099 136.896793128993 -45.992399408620 -56.463863874911 64.530732798300 74.848968592795 -29.189295368207 -49.547394454551 -129.422755698566 -15.572474078680 38.2372021855...
result:
ok accepted
Test #13:
score: 0
Accepted
time: 46ms
memory: 10348kb
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.123371874668 -0.228922384844 -80.932951844346 406.224069176726 -4.204343887837 -376.582466345398 54.372550077217 -51.030577371444 533.283739311220 476.211485992433 -116.680081022633 285.145597332801 216.336885830156 394.502734229705 258.166077663040 -5.155449004032 -43.707219894844 -22.4341032503...
result:
ok accepted
Test #14:
score: 0
Accepted
time: 63ms
memory: 11108kb
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.740816543518 -223.345247352341 8.119211477897 74.544339028772 -158.195190670069 454.271764674818 0.336289924057 1.599498739191 170.237646304922 -178.398592282018 78.030171811624 -140.289682610927 235.539946534254 -22.838247405924 -106.433001536953 -29.395141691115 274.683283391395 -141.77648831...
result:
ok accepted
Test #15:
score: 0
Accepted
time: 2ms
memory: 10472kb
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.104190208021 49.788182630524 -84.983595388021 -182.410882370588 63.949105425812 -36.007695328579 -77.961140644536 150.144991463167 20.507903041048 146.971298760235 -37.556697098021 76.724761135874 12.103101318283 275.758161339901 73.787605927963 9.647038350296 32.022605521747 -93.771296973224 -4...
result:
ok accepted
Test #16:
score: 0
Accepted
time: 25ms
memory: 8936kb
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.129940836881 -55.082365248134 4.818012530089 42.531818554017 -10.492004714959 17.478256433472 70.020971530022 -23.976482236150 -58.774757602238 43.265642143385 53.160337540978 -92.933320512232 59.338444570109 -85.742037515980 88.212433726592 -96.807451939329 44.091583981169 62.027440907194 -78.21...
result:
ok accepted
Test #17:
score: 0
Accepted
time: 13ms
memory: 10472kb
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.048809275639 27.051649028104 114.191056229547 -84.578907664296 -5.935221844175 -112.462038287923 -106.567216183456 55.135143156150 58.308852235329 -21.796521846230 -101.504569808725 4.105441599825 -43.013216064154 -20.974861269737 13.689306917199 21.817727913452 37.929900750762 29.564945821853 10...
result:
ok accepted
Test #18:
score: 0
Accepted
time: 49ms
memory: 10840kb
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.897339790893 -81.476956369678 -91.375603244631 28.991755000480 49.082751192194 -56.961541367686 -16.903417574047 -8.994492465875 -81.393066160593 -5.361701089805 -80.837372439908 -112.594202912880 69.609469107909 -59.611510333342 -28.185618290326 -52.701601960940 -28.973479564545 51.099931421638 ...
result:
ok accepted
Test #19:
score: 0
Accepted
time: 19ms
memory: 8036kb
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.133823664977 85.416033381393 52.968967178746 -47.513425518001 27.058410636994 44.711185766516 37.388884509725 -85.930586116973 74.399774465385 4.273763144354 4.614370170370 -81.227355185058 -30.587406659029 75.288024034881 51.573014381547 -37.445038074221 -90.906794784981 77.412074900354 -85.3554...
result:
ok accepted
Test #20:
score: 0
Accepted
time: 33ms
memory: 11240kb
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.701250342751 -40.974587334357 133.202200750260 199.431391762727 -215.891596784054 227.437112638969 -123.207324298022 -94.527862360930 101.329740398886 -57.925655961708 -199.606995890391 -192.413563143524 -213.229431455580 -139.937031975687 127.729217225897 117.677509069275 20.159856171550 -10.771...
result:
ok accepted
Test #21:
score: 0
Accepted
time: 1ms
memory: 8296kb
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.223099703389 -57.545165035361 -59.831478583079
result:
ok accepted
Test #22:
score: 0
Accepted
time: 0ms
memory: 7972kb
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.568654064303 -43.891552650214 32.453979292299 51.135410720149 93.167780703118
result:
ok accepted
Test #23:
score: 0
Accepted
time: 0ms
memory: 8168kb
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.794118772959 95.235947015082
result:
ok accepted
Test #24:
score: 0
Accepted
time: 1ms
memory: 7016kb
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.134625290192 -98.642347337344
result:
ok accepted
Test #25:
score: 0
Accepted
time: 0ms
memory: 8168kb
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.952021226372 -11.495004771431 41.356493464088
result:
ok accepted
Test #26:
score: 0
Accepted
time: 7ms
memory: 8556kb
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.825868498572 68.677589549647 -19.595364159572 -12.421216734715 3.643259920632 -30.465525212338 -46.874010113525 88.949102690662 53.507923346726 90.686126164453 -40.414740558309 -30.435267448985 72.266125680670 62.378075707154 -55.493303868734 65.355191403133 -96.749927904827 1.167321679331 -42....
result:
ok accepted
Test #27:
score: 0
Accepted
time: 7ms
memory: 10216kb
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.305679256970 769.970544078988 -25.520718736235 3.344530402903 0.284411198935 -30.792189245557 16.751013412967 -28.674621815956 -22.536490229730 29.879329575837 71.777612001343 58.660096600351 40.754897200063 20.016849974404 44.376525328114 79.621072598489 -18.837035424944 -60.894760423821 13.965...
result:
ok accepted
Test #28:
score: 0
Accepted
time: 3ms
memory: 8676kb
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.361690470466 -44.493359704496 -89.950755031273 12.713226485915 -52.430064868896 30.504371918002 34.556692920552 -99.073019339696 54.673709899142 82.568717831568 35.284404048393 23.243065316421 2.326870537832 96.104901741108 -73.303131774624 -87.010894039259 -16.795393247066 99.203048379583 -86....
result:
ok accepted
Test #29:
score: 0
Accepted
time: 20ms
memory: 9064kb
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.363538120708 48.893298148762 10.250150116230 25.322402009120 75.514690063747 -76.795680608992 -19.638021835025 33.179479789704 -48.949875979431 -73.789195754986 70.215652017521 -39.476666987035 -21.626156756697 86.270991556452 80.560723231136 49.410501440316 17.575124984110 69.459302227738 32.8...
result:
ok accepted
Test #30:
score: 0
Accepted
time: 51ms
memory: 9448kb
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.397175784938 -19.345869096152 -6.968755010773 0.344562975544 -68.986485841555 45.256019707154 68.600013761714 36.162071621226 -10.163305816797 -75.815339953407 -6.260780626134 -22.834268469040 -0.388411617025 -54.001901786387 5.390042380746 -52.223807851362 -90.525358960203 -27.027932115845 -22...
result:
ok accepted
Test #31:
score: 0
Accepted
time: 0ms
memory: 8036kb
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.480765131707
result:
ok accepted
Test #32:
score: 0
Accepted
time: 0ms
memory: 8036kb
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.460943799241
result:
ok accepted
Test #33:
score: 0
Accepted
time: 0ms
memory: 8172kb
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.568455666121 -19.609881908572 59.428432793613 13.537663454924
result:
ok accepted
Test #34:
score: 0
Accepted
time: 0ms
memory: 8164kb
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.032668818913 -44.481988606091 -78.799636574320 -83.618857195278 62.455995681905
result:
ok accepted
Test #35:
score: 0
Accepted
time: 0ms
memory: 8164kb
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.767499085952 42.549299195739 62.679086620926 53.316016334209
result:
ok accepted
Test #36:
score: 0
Accepted
time: 0ms
memory: 10080kb
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.251740534378 110.225459255950 305.853734361111 -86.329738993490 -13.730494446075 25.984870122079 -5.302284181153 -41.856349440109 67.835228628443 -32.597728368288 24.904954483827 4.204206132958 28.990790980260 -24.933223837962 -78.767682538311 -39.988123963518 -10.663476580841 -14.769117571857 1...
result:
ok accepted
Test #37:
score: 0
Accepted
time: 0ms
memory: 10300kb
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.086172538800 26.384222341309 9.370593547892 28.371173385627 -65.117510855948 -57.943343972705 -18.409108967040 6.397063013268 -5.326105978791 -9.521119242565 -16.708056822991 26.040153843021 23.571128608553 7.748661658609 -31.638695573627 57.252931350293 -39.770877981776 44.964228052082 -5.90484...
result:
ok accepted
Test #38:
score: 0
Accepted
time: 0ms
memory: 10212kb
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.279083157470 72.811507479995 131.510635018830 -30.253100571290 -43.691737015597 15.388936359306 33.767093960314 24.641208546623 -26.571451891008 25.700958476535 44.236112443390 3.023326335429 39.060532008005
result:
ok accepted
Test #39:
score: 0
Accepted
time: 0ms
memory: 10084kb
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.829817266396 -125.700532720913 144.288506231510 16.932013162707 89.618250023703 -48.616827087465 -18.551735831894
result:
ok accepted
Test #40:
score: 0
Accepted
time: 0ms
memory: 10080kb
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.429812069438 289.654047530606 -0.436944151730 6.409451718812 20.541520458633 -45.153080196353 -18.475252286998 -19.584919817793 60.869429619753 39.426689937185 -29.513280348285 -13.881070168725 -78.698881124664 -68.259787882623 51.807625002556 5.047518100203 -11.250566530295 24.231179751498 -8....
result:
ok accepted
Test #41:
score: 0
Accepted
time: 0ms
memory: 8040kb
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.922341892941 -99.744778842821 60.939773322335 -50.333276624370 -0.852151003443 97.904190765132 -36.611606906057 28.170978893401 67.286374166253 -92.041855540819 -71.089405807295 -93.614293663618 -41.865660000476 35.205899852433 1.882781060670 -98.874172871599 -86.206678386189 -34.927153388096 -7...
result:
ok accepted
Test #42:
score: 0
Accepted
time: 0ms
memory: 10216kb
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.642345871850 29.937643659226 -42.542530657593 -7.200090168089 19.678019523890 -54.218842477893 -9.339736774200 -23.695074443630 -1.038789798992 86.110898819325 -32.104314043494 -163.541194319424 -6.587744636459 45.214721471308 -86.189425767002 59.158966019241 28.155762277580 -98.034677319385 -2.5...
result:
ok accepted
Test #43:
score: 0
Accepted
time: 0ms
memory: 10092kb
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.821085091837 -47.376011444935 14.660135972664 80.748033716164 -108.328548658490 51.023759217921 -8.579640640263 -44.698161459244 65.320203094071 -29.932451026312 -52.680620704212 -43.854221725658 -15.146024035918 75.653934435460 -18.182802224680 -23.020127946253 -30.723183937077 -16.333541742969 ...
result:
ok accepted
Test #44:
score: 0
Accepted
time: 0ms
memory: 9984kb
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.163308496759 -93.021921115105 82.602085050720 21.984385056171 7.092123174703 46.322279343427 56.990593692749 -74.880241762532 -38.994659159277 57.064002884619 -47.807964199639 15.597175578078
result:
ok accepted
Test #45:
score: 0
Accepted
time: 1ms
memory: 10216kb
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.665210859266 55.001484565999 11.052718992914 17.853331844576 72.764713647581 60.847194592364 47.123613874636 123.743355585933 -43.771693946049 35.199713693034 -75.255940098635 64.009857490881 7.200361814217 -19.476902046157 49.865236095820 83.390487383779 -92.569740215896 -7.291594077796 -82.752...
result:
ok accepted
Test #46:
score: 0
Accepted
time: 0ms
memory: 8040kb
input:
5 1 -98.92874737593162138 61.13121144302337484 -55.35187132540717414 31.04973951571832913 -12.86232323817209533 153.48461134875867629
output:
54.555863972827 61.131211443023 -55.351871325407 31.049739515718 -12.862323238172
result:
ok accepted
Test #47:
score: 0
Accepted
time: 0ms
memory: 8040kb
input:
5 1 74.45601861721232240 -88.25221705818179885 -21.89425418617103958 51.81808193090810732 -65.37432640384588467 220.12839308526943682
output:
294.584411702482 -88.252217058182 -21.894254186171 51.818081930908 -65.374326403846
result:
ok accepted
Test #48:
score: 0
Accepted
time: 0ms
memory: 10016kb
input:
2 2 4.14909935574205235 -78.28709659608364291 49.35646372696943018 -45.22408328403919597 19.66777996170694109 106.04657364268864228
output:
39.613308084863 -43.959987617188
result:
ok accepted
Test #49:
score: 0
Accepted
time: 0ms
memory: 10080kb
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.167807114487 80.907009941332 92.206948465015
result:
ok accepted
Test #50:
score: 0
Accepted
time: 0ms
memory: 8168kb
input:
2 3 -39.02285862135088479 96.05974306394270457 192.78968611015349666 -92.31646382797036665 95.94080691707665665 202.03332590641781508 80.44236050212563782 -92.11837389867663717 111.53034736239179381
output:
-30.999393198107 -96.562911556571
result:
ok accepted