QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#870135 | #8620. Jigsaw Puzzle | ucup-team5008# | WA | 1ms | 4224kb | C++20 | 2.5kb | 2025-01-25 14:57:48 | 2025-01-25 14:57:58 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define rep2(i,j,k) for(ll i=ll(j); i<ll(k); i++)
#define rep(i,j) rep2(i,0,j)
#define rrep2(i,j,k) for(ll i=ll(j)-1;i>=ll(k);i--)
#define rrep(i,j) rrep2(i,j,0)
#define SZ(a) ll(a.size())
#define all(a) a.begin(),a.end()
#define eb emplace_back
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vl>;
const ll inf=LLONG_MAX/4;
template<typename T>
bool chmin(T& a,T b){return a>b?a=b,1:0;}
template<typename T>
bool chmax(T& a,T b){return a<b?a=b,1:0;}
using ld=long double;
using Pt=complex<ld>;
using vt=vector<Pt>;
const ld EPS=1e-9;
using P=pair<ll,ll>;
using vp=vector<P>;
using vvp=vector<vp>;
using F=pair<ld,ld>;
#define ln "\n"
#define r(a) real(a)
#define i(a) imag(a)
bool equal(ld a,ld b){return abs(a-b)<=EPS;}
bool equal(Pt a,Pt b){return equal(r(a),r(b)) && equal(i(a),i(b));}
ld cross(Pt a,Pt b){return r(a)*i(b)-i(a)*r(b);}
ld dot(Pt a,Pt b){return r(a)*r(b)+i(a)*i(b);}
ld cross(Pt a,Pt b,Pt c){return cross(b-a,c-a);}
Pt input(){
ld x,y;cin>>x>>y;
return Pt(x,y);
}
Pt tr(Pt p0,Pt p1,Pt q0,Pt q1,Pt r){
Pt dp=p1-p0,dq=q1-q0;
Pt num(cross(dp,dq),dot(dp,dq));
return q0+Pt(cross(r-p0,num),dot(r-p0,num))/norm(dp);
}
int main(){
cin.tie(0)->sync_with_stdio(0);
cout<<fixed<<setprecision(15);
ll n;cin>>n;
vl m(n);
vector<vt> p(n);
rep(i,n){
cin>>m[i];
p[i].resize(m[i]);
rep(j,m[i]) p[i][j]=input();
}
vector<bool> flag(n);
vector<vt> ans(n);
queue<ll> que;
auto comp=[&](ld a,ld b){
return a+EPS<b;
};
map<ld,vp,decltype(comp)> data{comp};
rep(i,n){
ans[i].resize(m[i]);
rep(j,m[i]){
Pt a=p[i][(j+m[i]-1)%m[i]];
Pt b=p[i][j], c=p[i][(j+1)%m[i]];
if(equal(dot(b-a,b-c),0)) continue;
data[abs(b-c)].eb(i,j);
}
}
rep(i,n){
rep(j,m[i]){
Pt a=p[i][(j+m[i]-1)%m[i]],
b=p[i][j],
c=p[i][(j+1)%m[i]];
if(equal(dot(b-a,b-c),0)){
ll nxt=i;
rep(k,m[nxt]){
ans[nxt][k]=tr(b,c,Pt(0,0),Pt(1,0)*abs(b-c),p[nxt][k]);
}
flag[i]=true;
que.push(i);
goto XYZ;
}
}
}
XYZ:
while(!que.empty()){
ll now=que.front(); que.pop();
rep(j,m[now]){
Pt b=p[now][j], c=p[now][(j+1)%m[now]];
if(!data.count(abs(b-c))) continue;
for(auto el:data[abs(b-c)]){
if(el==make_pair(now,j)) continue;
ll nxt=el.first;
if(flag[nxt]) continue;
flag[nxt]=true;
rep(k,m[nxt]){
ans[nxt][k]=tr(p[nxt][el.second],p[nxt][(el.second+1)%m[nxt]],ans[now][(j+1)%m[now]],ans[now][j],p[nxt][k]);
}
que.push(nxt);
}
}
}
rep(i,n){
rep(j,m[i]) cout<<r(ans[i][j])<<" "<<i(ans[i][j])<<ln;
cout<<ln;
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 4096kb
input:
4 4 0.440405375916 0.778474079786 0.000000000000 0.090337001520 0.469097990019 0.000000000000 0.702887505082 0.689470121906 4 0.222810526978 0.000000000000 0.270828246634 0.522212063829 0.000000000000 0.547114887265 0.021480010612 0.069880870008 4 0.000000000000 0.312825941471 0.358219176380 0.00000...
output:
0.277161636324044 0.000000000000000 0.473262431361152 0.793116644514534 0.000000000002824 0.728029248282284 0.000000000000000 0.000000000000000 0.524415046517553 0.999999999997775 0.000000000003896 1.000000000000263 0.000000000002824 0.728029248282284 0.473262431361152 0.793116644514534 1.00000000...
result:
ok OK
Test #2:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
2 4 1.187724454426 0.260257896229 0.903481480651 1.219010174901 0.000000000000 0.951153431795 0.309873903757 0.000000000000 4 0.516015116935 0.888042716318 0.000000000000 0.031046166652 0.048574738349 0.000000000000 0.587115596943 0.842599396881
output:
0.000000000000000 0.000000000000000 0.999999999999604 0.000000000000000 0.999999999999946 0.942351325518608 0.000000000000243 0.915617694160293 0.000000000000243 0.915617694160293 0.999999999999946 0.942351325518608 0.999999999999940 0.999999999999970 0.000000000000177 0.999999999999978
result:
ok OK
Test #3:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
2 4 0.010984487654 0.637154242202 0.000000000000 0.364429379044 0.986132728982 0.000000000000 1.010174362438 0.596910060881 4 1.051085498217 0.708750184397 0.000000000000 0.686709156365 0.238826458657 0.000000000000 1.183335588457 0.328485165151
output:
0.000000000000000 0.000000000000000 0.272945983582046 -0.000000000000000 0.597394024845134 1.000000000000214 0.000000000000399 1.000000000000532 0.597394024845134 1.000000000000214 0.272945983582046 0.000000000000000 1.000000000000839 0.000000000000319 1.000000000000508 1.000000000000731
result:
ok OK
Test #4:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
2 4 0.826904615568 0.393527743434 0.397181437913 1.296488423966 0.078224855062 1.144695506210 0.000000000000 0.000000000000 4 1.022875732881 0.126407334306 0.000000000000 0.646188215994 0.027327732878 0.000000000000 1.026434680216 0.042252902634
output:
0.000000000000000 0.000000000000000 1.000000000000362 0.000000000000000 1.000000000000178 0.353234188074805 0.000000000000080 0.915770346811862 0.000000000000080 0.915770346811862 1.000000000000178 0.353234188074805 1.000000000000836 0.999999999999246 0.000000000000185 0.999999999999914
result:
ok OK
Test #5:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
2 4 0.341358383182 1.391325004482 0.000000000000 0.397880525310 0.531982366752 0.000000000000 1.130916074772 0.800798609763 4 1.051975365355 0.325235570274 0.003475133323 0.261167306728 0.000000000000 0.247567137365 0.968870740861 0.000000000000
output:
1.000000000000092 0.985962865025225 -0.000000000000011 0.664314798085983 0.000000000000000 0.000000000000000 1.000000000000470 -0.000000000000000 -0.000000000000011 0.664314798085983 1.000000000000092 0.985962865025225 1.000000000000448 1.000000000000535 0.000000000000174 0.999999999999688
result:
ok OK
Test #6:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
2 4 0.082220615826 0.000000000000 0.226158368535 0.989676141653 0.157074587283 1.000663841224 0.000000000000 0.013077098690 4 0.796463091415 0.000000000000 1.301438005407 0.863236513506 0.516366280506 1.336613199533 0.000000000000 0.480245367141
output:
0.999999999999551 0.083254070032369 -0.000000000000841 0.069952114863932 0.000000000000000 0.000000000000000 0.999999999999521 0.000000000000000 -0.000000000000841 0.069952114863932 0.999999999999551 0.083254070032369 0.999999999999812 1.000000000000789 -0.000000000000307 1.000000000000756
result:
ok OK
Test #7:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
2 4 0.919168715346 1.052156329422 0.000000000000 0.740689700679 0.930075742206 0.000000000000 1.240100800584 0.105054119170 4 1.147942957461 0.000000000000 1.169807209495 0.019794683310 0.498656378683 0.761115506098 0.000000000000 0.309659628218
output:
0.000000000000000 0.000000000000000 0.970506356543503 0.000000000000000 0.327340655552202 1.000000000000178 0.000000000000731 0.999999999999717 0.970506356543503 -0.000000000000000 1.000000000000174 0.000000000000488 1.000000000000421 0.999999999999694 0.327340655552202 1.000000000000178
result:
ok OK
Test #8:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
3 4 0.000000000000 0.136914050437 1.205473860654 0.000000000000 1.271801552152 0.076389603324 0.516716328492 0.732016253949 4 0.193356841190 1.008675084911 0.000000000000 0.998661755544 0.051717482677 0.000000000000 0.069051074671 0.000897651020 4 0.189612940043 1.009339071474 0.000000000000 0.01178...
output:
0.999999999999740 0.788125876212100 -0.000000000000268 0.101166862931752 0.000000000000000 0.000000000000000 0.999999999999714 -0.000000000000000 0.999999999999457 0.806384053343768 0.999999999999692 1.000000000001009 -0.000000000000547 1.000000000001008 -0.000000000000728 0.982643180339327 0.9999...
result:
ok OK
Test #9:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
4 5 0.933026549197 0.034096050827 1.030580221284 0.341877704707 0.077317792660 0.644021283449 0.000000000000 0.400083791499 0.816713028753 0.000000000000 5 0.000000000000 0.567232254210 0.177744443744 0.000000000000 0.278219549927 0.015709015317 0.955605106642 0.861917658609 0.954247706440 0.8662495...
output:
0.000000000000408 0.322871902467164 0.000000000000000 0.000000000000000 1.000000000000575 0.000000000000000 1.000000000000373 0.255897520583282 0.100575406162766 0.390517770007990 0.000000000001178 1.000000000000008 0.000000000000451 0.405571267940372 0.100575406162766 0.390517770007990 1.000000000...
result:
ok OK
Test #10:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
4 4 0.578470606282 0.000000000000 1.060885700639 0.240610189702 0.817167310798 0.691089665380 0.000000000000 0.248985836080 4 0.000000000000 0.520597380570 0.022799149709 0.000000000000 0.882566155159 0.037652814638 0.461438543132 0.525442723877 4 0.057126159280 0.427841981239 0.000000000000 0.38584...
output:
0.538791330606540 0.494251903795092 -0.000000000000095 0.512182010181747 0.000000000000000 0.000000000000000 0.929095371702259 0.000000000000000 0.999999999998715 0.478903623228840 0.999999999998646 0.999999999998915 0.139408901910726 0.999999999999727 0.538791330606540 0.494251903795092 0.9290953...
result:
ok OK
Test #11:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
3 3 0.823899373670 0.782629779690 0.288601744213 0.945945553033 0.000000000000 0.000000000000 5 0.919151534064 0.575061183684 0.169973459288 1.263242535288 0.000000000000 1.135836341471 0.145355826013 0.008808731413 0.151958544733 0.000000000000 4 1.000848179486 0.040130744019 0.991701546880 0.26786...
output:
-0.000000000000423 0.559656675047217 0.000000000000000 0.000000000000000 0.988991383211044 0.000000000000000 1.000000000000989 0.958791138809281 -0.000000000000922 0.772079166995105 -0.000000000000423 0.559656675047217 0.988991383211044 -0.000000000000000 0.999999999999816 -0.000000000000645 -0.00...
result:
ok OK
Test #12:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
3 4 0.784316497399 0.634251077946 0.006801703755 1.263115726074 0.000000000000 1.254706245103 0.271325510967 0.000000000000 4 0.176866080715 0.000000000000 1.325780121566 0.313426050448 1.266765536888 0.366283123599 0.000000000000 0.158412084360 4 0.637108390812 0.412967145896 0.087765752860 1.24856...
output:
0.000000000000000 0.000000000000000 1.000000000000213 0.000000000000000 0.999999999999942 0.010815846900377 -0.000000000000408 0.815741492162891 0.999999999999677 0.248252151998782 -0.000000000001331 0.894966433859360 -0.000000000000408 0.815741492162891 0.999999999999942 0.010815846900377 0.99999...
result:
ok OK
Test #13:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
6 4 0.921652078321 0.149600568920 0.078937119587 0.337059477836 0.000000000000 0.296726127108 0.743849912614 0.000000000000 4 1.023501554022 0.000000000000 0.951768850516 0.475614028074 0.000000000000 0.332067057777 0.284068099668 0.057351469275 4 0.049230909949 0.111307311191 0.213550746194 0.00000...
output:
0.198469962742624 0.999999999997245 0.722611210459386 0.314007801327436 0.808979639163113 0.294049280521476 0.430835924859304 0.999999999995913 0.000000000000482 0.480993019131313 0.000000000000000 0.000000000000000 0.962532948783571 0.000000000000000 0.722611210459386 0.314007801327436 0.19846996...
result:
ok OK
Test #14:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
5 4 0.000000000000 0.055459913902 0.998460914583 0.000000000000 1.018410323962 0.359155002823 0.013840567536 0.304635665324 4 0.500064513905 0.019086089913 0.674971706538 0.000000000000 0.813263023860 0.224894936058 0.000000000000 0.724982740923 4 0.731666528739 0.764701825648 0.735437510038 0.80982...
output:
0.000000000000000 0.000000000000000 0.999999999999969 0.000000000000000 0.999999999999880 0.359708625122279 0.000000000000012 0.249559845340625 0.841010192047742 0.660628774412448 1.000000000000153 0.735988218612756 1.000000000000556 0.999999999999846 0.045282995568045 0.999999999999894 0.04528299...
result:
ok OK
Test #15:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
5 3 0.000000000000 0.061747330599 0.247806449221 0.000000000000 0.229822253050 0.275345649819 5 0.538394745273 0.029328826979 0.968971368133 0.672420034382 0.916291764826 0.738725056183 0.000000000000 0.284470622299 0.226013039857 0.000000000000 4 0.014373491307 0.145007400418 1.026752147154 0.00000...
output:
1.000000000000229 0.572196077093518 1.000000000000416 0.827579649610569 0.737172007494948 0.743555221367044 0.737172007494948 0.743555221367044 0.000000000000078 0.507886045278656 0.000000000000437 0.423201356458247 0.999999999999668 0.208870563075441 1.000000000000229 0.572196077093518 0.99999999...
result:
ok OK
Test #16:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
7 5 0.810317691232 0.643017535788 0.309793761559 0.764262848182 0.000000000000 0.561376089933 0.651400345497 0.000000000000 0.931962307009 0.325553870105 4 0.171076044751 0.000000000000 0.265564197304 0.103411254234 0.071756689228 0.418964516278 0.000000000000 0.156314315443 4 0.386419063825 0.00000...
output:
0.590837719740353 0.299394494001392 0.355929237222249 0.757698579509979 -0.000000000000307 0.859921812993527 0.000000000000000 0.000000000000000 0.429767770531719 0.000000000000000 -0.000000000001056 1.000000000000601 -0.000000000000307 0.859921812993527 0.355929237222249 0.757698579509979 0.231735...
result:
ok OK
Test #17:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
7 4 0.000000000000 0.177488867232 0.176950314412 0.039266481958 0.556242974263 0.000000000000 0.075309305264 0.536013509980 4 0.203281319601 0.323314306022 0.000000000000 0.110510724304 0.349283252863 0.000000000000 0.408321765666 0.043218341300 5 0.860850463389 0.099669917919 0.433724726467 0.81261...
output:
0.295487175009102 0.289727904303499 0.256089565457887 0.510781449678651 -0.000000000001522 0.793310939970950 0.000000000000096 0.073166734372345 0.347124378250912 0.000000000000000 0.295487175009102 0.289727904303499 0.000000000000096 0.073166734372345 0.000000000000000 0.000000000000000 0.9999999...
result:
ok OK
Test #18:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
6 4 0.880095449711 0.315891170135 0.784668799664 0.890843756640 0.000000000000 0.600905379684 0.728266831893 0.000000000000 4 0.083309474403 0.000000000000 0.291032832219 0.544543596864 0.066903447530 0.393219949838 0.000000000000 0.014725970157 4 0.007778511174 0.196667909856 0.000000000000 0.13427...
output:
0.194367929089027 0.572387923650118 0.084600961710662 0.000000000000000 0.921123159621709 0.000000000000324 0.446272962796056 0.816074227226720 0.084600961710662 0.000000000000000 0.194367929089027 0.572387923650118 0.000000000001021 0.384361501644169 0.000000000000000 0.000000000000000 0.33925182...
result:
ok OK
Test #19:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
9 4 0.062298941747 0.379982766518 0.000000000000 0.335827002916 0.238024873877 0.000000000000 0.368555159260 0.154177511533 4 0.271980593498 0.402027829795 0.000000000000 0.242759569523 0.006597351582 0.000000000000 0.412952594723 0.011043306806 4 0.713919783914 0.000000000000 0.775523766209 0.02973...
output:
0.000000000000178 0.076360261930351 0.000000000000000 0.000000000000000 0.411625578009561 0.000000000000000 0.361318896389119 0.195647893546073 0.605330070725008 0.276206965781882 0.757150800613101 0.000000000001112 1.000000000000039 0.000000000001659 0.999999999998527 0.406505274571816 0.22773304...
result:
ok OK
Test #20:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
12 4 0.011736358846 0.082356480218 0.408765987214 0.000000000000 0.506829492828 0.122146405389 0.000000000000 0.183574392246 3 0.518781549596 0.245694689851 0.000000000000 0.398529593227 0.074761480444 0.000000000000 4 0.075538054618 0.530132543078 0.000000000000 0.488866489116 0.155089097424 0.0109...
output:
0.638842026087308 0.656981486448735 1.000000000000268 0.841318225910863 0.999999999999372 0.997958563891977 0.566323430454179 0.728562637052097 1.000000000000636 0.300492187436178 1.000000000000268 0.841318225910863 0.638842026087308 0.656981486448735 0.484942229891297 0.578430301970608 0.42677372...
result:
ok OK
Test #21:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
14 4 0.238874723659 0.350932855333 0.056257209931 0.347991971885 0.000000000000 0.014112992049 0.083758710992 0.000000000000 3 0.000000000000 0.000000000000 0.074629721440 0.057264984008 0.050867075265 0.098486920063 5 0.000000000000 0.100859535910 0.152266736787 0.000000000000 0.585330206242 0.2675...
output:
0.179590467419880 0.371827941281616 0.000000000000862 0.338585361239302 0.000000000000000 0.000000000000000 0.084939379628159 0.000000000000000 0.490588726532879 0.906744529353758 0.478248106184496 0.999999999998307 0.430667528577884 0.999999999998902 0.000000000000862 0.338585361239302 0.17959046...
result:
ok OK
Test #22:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
25 4 0.000000000000 0.627504305794 0.147063422648 0.000000000000 0.282537740951 0.083274926848 0.087264778840 0.609639797093 3 0.040754587534 0.053855777929 0.019823186956 0.059913069526 0.000000000000 0.000000000000 4 0.000000000000 0.138379187270 0.054487787984 0.000000000000 0.282847594751 0.1139...
output:
0.379603407064363 1.000000000001769 0.649529023532311 0.414739830805464 0.765549439193924 0.523493072187277 0.468677995456153 1.000000000000991 0.869382601298512 0.356830962637295 0.857860197998542 0.375325516804727 0.803073634868669 0.344005121825857 0.499831748621638 0.000000000011355 0.43762446...
result:
ok OK
Test #23:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
31 4 0.335089288956 0.202130218860 0.111257412594 0.213056135994 0.000000000000 0.115005293141 0.101353839372 0.000000000000 5 0.368599476325 0.185829203903 0.028334455772 0.164205533565 0.000000000000 0.125424247883 0.009151606319 0.000000000000 0.420642774919 0.030024538656 4 0.014611117134 0.4683...
output:
0.156189261512727 0.308999189064774 -0.000000000000227 0.148297604974913 0.000000000000000 0.000000000000000 0.153293242531732 0.000000000000000 0.159178849969325 0.627982046134391 0.162374193004706 0.968918487592632 0.125757679113445 0.999999999999614 0.000000000002774 1.000000000001011 -0.0000000...
result:
ok OK
Test #24:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
38 6 0.055783185423 0.185264589599 0.000000000000 0.109085977012 0.008304609077 0.000000000000 0.192122870699 0.013993905045 0.330134360764 0.183894016971 0.331013036656 0.209310854427 6 0.313528615558 0.117272301270 0.460548489005 0.402591166057 0.450995573032 0.409647373622 0.000000000000 0.427107...
output:
0.061404905993671 0.181125980717945 0.000000000000339 0.109401631215373 0.000000000000000 0.000000000000000 0.184350163233295 -0.000000000000000 0.334860462407396 0.158933537256778 0.337665979233793 0.184210340316594 0.096670289959483 0.709521015688982 0.370699617047581 0.542399426147644 0.37842335...
result:
ok OK
Test #25:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
42 3 0.023946458177 0.001644458456 0.052848741781 0.000000000000 0.000000000000 0.033937501244 4 0.000000000000 0.437888290711 0.220437603206 0.000000000000 0.252072649283 0.037291610744 0.214541156503 0.387891843578 5 0.056385180666 0.000000000000 0.307613101005 0.119085407065 0.324470389249 0.5126...
output:
0.954175851292285 0.673121267111505 0.928998407950452 0.658833419551356 0.991805454642088 0.658969008512441 0.675910301121352 0.999999999994453 0.185666594334373 0.999999999992564 0.204750992200983 0.954975272006741 0.534784987026036 0.830851549572633 0.000000000000000 0.000000000000000 0.27802302...
result:
ok OK
Test #26:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
47 4 0.000000000000 0.000000000000 0.240721682184 0.063972715782 0.212144051267 0.142587916515 0.194188982632 0.164356993645 3 0.000000000000 0.007329294278 0.004097455454 0.000000000000 0.012808348423 0.004742705864 4 0.000000000000 0.191434375054 0.194726601227 0.006150268983 0.209266332239 0.0000...
output:
0.000000000017822 0.998917870743767 0.000000000006652 0.749840700695171 0.083317840909367 0.757268228048589 0.108968218131770 0.769029833259858 0.836214786770039 0.999999999996123 0.827817900692108 0.999999999996485 0.827706929916912 0.990082308697121 0.576382215862440 0.551534859065372 0.34067422...
result:
ok OK
Test #27:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
66 5 0.000000000000 0.005053823688 0.010340563564 0.000000000000 0.068710101615 0.119429160119 0.065718142206 0.133817342462 0.045777209397 0.180721261022 5 0.319222361577 0.160705577488 0.145577264946 0.213639327175 0.045295283323 0.175775668292 0.000000000000 0.039061839645 0.232351393621 0.000000...
output:
0.000000000000223 0.011509491243774 0.000000000000000 0.000000000000000 0.132929783190288 0.000000000000000 0.144542901087900 0.009005948308572 0.177927086761255 0.047517174262872 0.000000000000223 0.011509491243774 0.177927086761255 0.047517174262872 0.248139779896328 0.128512916279839 0.222974472...
result:
ok OK
Test #28:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
65 3 0.000000000000 0.037227150695 0.041112144465 0.000000000000 0.053670737603 0.076203761999 4 0.225553825935 0.000000000000 0.223161633995 0.030611367046 0.001148070858 0.117279311869 0.000000000000 0.054401518608 3 0.131607859592 0.000000000000 0.015270081138 0.023579309412 0.000000000000 0.0133...
output:
0.824952608083918 1.000000000015829 0.769490285994104 1.000000000018735 0.811330190070096 0.935083484156170 0.912383527931179 0.313723096754539 0.915772502291542 0.344240194054185 0.713942974604210 0.470992695554855 0.701027476991561 0.409444950885037 0.870019333480399 0.803644969190050 0.77025155...
result:
ok OK
Test #29:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
87 3 0.000000000000 0.015182039322 0.008005468111 0.000000000000 0.008505409967 0.010237923361 3 0.006579715319 0.000000000000 0.016526460362 0.024920112337 0.000000000000 0.034862041390 4 0.000000000000 0.113613541825 0.016977010685 0.055116049444 0.095225367059 0.000000000000 0.088645927138 0.0572...
output:
0.570708544343926 0.428506116840607 0.565790928991521 0.444949927129582 0.563320107331596 0.435002060177190 0.485001939812864 0.407560381248504 0.500296779845483 0.429606188201119 0.486428651052974 0.443009204621826 0.409845170446731 0.569937837780175 0.417606551210175 0.509523133649036 0.48642865...
result:
ok OK
Test #30:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
81 3 0.000000000000 0.018267088323 0.021828432930 0.000000000000 0.065397626776 0.045720726608 6 0.015975080205 0.143941945631 0.000000000000 0.039492133537 0.018991882284 0.000000000000 0.265356466097 0.239413579318 0.222071970974 0.269301144149 0.186580330217 0.282053589632 6 0.013895601825 0.0000...
output:
1.000000000071698 0.113692312833764 1.000000000071279 0.142155745516930 0.936975482028190 0.146226325331504 0.247040984850263 0.502378791858394 0.153148587158688 0.550847174244665 0.109660835872217 0.545449425428908 0.257948045812945 0.235569975478032 0.300084708796581 0.267055141549172 0.323495388...
result:
ok OK
Test #31:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
95 5 0.047827693957 0.000000000000 0.098857399884 0.086786768459 0.102220020859 0.096330476080 0.001430528120 0.223787762853 0.000000000000 0.223443956666 3 0.041762757505 0.000000000000 0.019205931557 0.054198718204 0.000000000000 0.047533425298 4 0.013367507814 0.039249301738 0.185174533248 0.0000...
output:
0.228433958077663 0.590034509274824 0.155974704330126 0.659931795438355 0.147481011278078 0.665431500277299 -0.000000000022624 0.597216889641702 -0.000000000022610 0.595745627123876 0.744716935981436 0.204806441608429 0.688646997812175 0.222198206975434 0.681464201994217 0.203179758490322 0.513870...
result:
ok OK
Test #32:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
116 5 0.021396819174 0.015342509410 0.001564438290 0.039397972939 0.000000000000 0.014915990992 0.013335003291 0.000226832016 0.023349444489 0.000000000000 4 0.012103646607 0.000000000000 0.016163789301 0.004840038879 0.003320086741 0.012493169256 0.000000000000 0.005575920918 4 0.000000000000 0.054...
output:
0.070533663569951 0.984705641330439 0.090905687317308 0.961105444180893 0.091915337716710 0.985616574576054 0.078251122482120 0.999999999974426 0.068234112685519 0.999999999974435 0.686437127328536 0.359802383213439 0.692000916801590 0.362794870764970 0.682904226169131 0.374660001171256 0.677258687...
result:
ok OK
Test #33:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
133 6 0.072574557839 0.312677865325 0.001137204536 0.330688379241 0.000000000000 0.013845009228 0.004399538886 0.000000000000 0.108499348680 0.123193399648 0.163704701535 0.244778990085 4 0.003230768068 0.050209672075 0.122105847351 0.000000000000 0.133421862210 0.070986500693 0.000000000000 0.06213...
output:
0.574115086599393 0.000000000006792 0.647787836365896 0.000000000006539 0.571432968927972 0.307507639860203 0.563782281979407 0.319857020902843 0.492957744160519 0.174952676739909 0.469151040419118 0.043560410446386 0.466331390811303 0.730788293929354 0.584117357779244 0.678074333488858 0.596932993...
result:
ok OK
Test #34:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
138 3 0.118685904723 0.066395606854 0.000000000000 0.031651747666 0.055681967637 0.000000000000 4 0.075000665916 0.000000000000 0.082124079088 0.034173858786 0.019340637052 0.077974103991 0.000000000000 0.064478480978 5 0.030628968215 0.043757686336 0.000000000000 0.024195722398 0.004477590785 0.000...
output:
0.799564255600561 0.966061369778102 0.711003274916546 0.879745482323015 0.775025455240407 0.877881326841131 0.730259566405849 0.525606883229199 0.755784887846876 0.549419770599183 0.729746352699089 0.621407385932332 0.706162965304135 0.621533564671690 0.520174449806839 0.588542755925861 0.55528965...
result:
ok OK
Test #35:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
148 3 0.026621319141 0.000000000000 0.007296844689 0.016827125239 0.000000000000 0.012235984397 5 0.021570834617 0.000000000000 0.154819739283 0.077564199064 0.050155665830 0.113755864820 0.000000000000 0.119522929551 0.001664388533 0.009536516799 3 0.005288235752 0.016716105247 0.000000000000 0.001...
output:
0.297694581426281 0.864864798085895 0.307439803032325 0.888563281424675 0.300752039929833 0.894003533380014 0.482822605429948 0.247214534429026 0.345254876807016 0.177597039403942 0.447616713376951 0.135330511790840 0.497347921033953 0.126632418003343 0.502135612698872 0.236527182156271 0.50701869...
result:
ok OK
Test #36:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
154 3 0.056906082314 0.036639142594 0.017316385181 0.066883717906 0.000000000000 0.000000000000 5 0.000062233246 0.085710539368 0.000000000000 0.085546504140 0.016747101114 0.000000000000 0.087129946292 0.060459853042 0.082449394349 0.077583985414 3 0.003341899019 0.029877838968 0.000000000000 0.007...
output:
0.551127866729424 0.408367557539341 0.574198184343099 0.452524537736677 0.505343750144756 0.458212754329197 0.494363125430672 0.132725827246238 0.494520338969448 0.132803701736018 0.540450269052548 0.206892238561514 0.447733812265103 0.210469579206074 0.439513279179632 0.194735339097983 0.61932426...
result:
ok OK
Test #37:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
157 3 0.022975295316 0.133753786252 0.000000000000 0.000000000000 0.078583822597 0.009635574028 3 0.037772151360 0.047904437968 0.000000000000 0.024531195919 0.050382878792 0.000000000000 3 0.000000000000 0.000000000000 0.020626099645 0.002132947552 0.005061027297 0.032396497109 3 0.011486204366 0.0...
output:
0.162315789785429 0.000000000002098 0.298028499328118 0.000000000003563 0.275228268968785 0.075818275876233 0.453097209173087 0.240483248223537 0.454330317727438 0.196081409235586 0.500852858005476 0.227320283969224 1.000000000008186 0.060236274384203 0.979950295598761 0.054945262673268 1.00000000...
result:
ok OK
Test #38:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
165 4 0.090134183082 0.025631923190 0.043091940369 0.042946264434 0.000000000000 0.000000000000 0.087801581797 0.022553046918 3 0.047090776615 0.014149434646 0.000000000000 0.013150413325 0.057969691667 0.000000000000 6 0.000000000000 0.198704670057 0.018044187015 0.071766500734 0.178666873308 0.000...
output:
0.803962791593809 0.168366515127385 0.786800121571103 0.215464304564450 0.726181325643393 0.220627494842902 0.800105665855296 0.168158936491036 0.835275613615364 0.639796933196093 0.797362031633608 0.611848774282878 0.852319662955341 0.634499983551450 0.452053047056249 0.751063127329508 0.39879801...
result:
ok OK
Test #39:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
141 4 0.070754311340 0.076269199248 0.062424474687 0.079390660730 0.000000000000 0.006608944100 0.027761363879 0.000000000000 3 0.032333140816 0.000000000000 0.018854367463 0.075770826201 0.000000000000 0.004917529209 4 0.043452229407 0.020635378104 0.071652138659 0.000000000000 0.010439540528 0.213...
output:
0.306563503953411 0.520883661734909 0.315051866856921 0.518223324224806 0.373394473758817 0.594316251198709 0.345312680176025 0.599394079052552 0.201305023701625 0.592396375586394 0.275733162310279 0.611975640596009 0.203584190556432 0.625021817915010 0.436292190656594 0.676350147747098 0.41503033...
result:
ok OK
Test #40:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
150 4 0.104430286936 0.036068594926 0.000000000000 0.072773969166 0.025770678197 0.013811311664 0.091197517141 0.000000000000 3 0.022670063559 0.000000000000 0.104750912415 0.033498179724 0.000000000000 0.018301996997 4 0.000000000000 0.033588192686 0.055509876760 0.000000000000 0.093612013862 0.164...
output:
0.795310203438740 1.000000000040770 0.796819614892854 0.889317160332879 0.843298297434124 0.933819462565835 0.833729596152793 1.000000000039301 0.932329706924060 0.318046604955429 0.849376258426100 0.349321501862934 0.936498948370065 0.289210649939684 0.859395837902740 0.822483153816642 0.79746719...
result:
ok OK
Test #41:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
151 4 0.082120886773 0.006976355697 0.071345566846 0.031392713209 0.000000000000 0.019517191355 0.053143917683 0.000000000000 3 0.000000000000 0.000000000000 0.091126171335 0.009853756763 0.057587797068 0.021670311143 3 0.007139134362 0.125189875294 0.000000000000 0.053938889174 0.089421404760 0.000...
output:
0.000000000003572 0.601164498029277 0.000000000003661 0.574476185349234 0.070066678132400 0.556535211460748 0.029326863446995 0.595847604476124 0.849602620335583 0.922211745987555 0.921348085751854 0.979252642113529 0.886687210783395 0.971310523099271 0.184601314964225 0.616113561109583 0.14403967...
result:
ok OK
Test #42:
score: 0
Accepted
time: 0ms
memory: 4224kb
input:
160 4 0.040696066791 0.047219823786 0.009305331291 0.057176448200 0.000000000000 0.056984712422 0.032268750605 0.000000000000 4 0.000000000000 0.038789020633 0.016915008366 0.016976583470 0.032763462120 0.000000000000 0.051547223008 0.019191763974 4 0.000000000000 0.000000000000 0.130172492374 0.038...
output:
0.443418107911612 0.431978969321507 0.439258240054962 0.464647121156258 0.435173017244975 0.473009950081392 0.397029849432577 0.419778113137820 0.120194014253649 0.466504896344096 0.147269682392818 0.471872215770709 0.169543371151591 0.478449499540051 0.160784750796567 0.503835323280989 0.13121407...
result:
ok OK
Test #43:
score: 0
Accepted
time: 1ms
memory: 4224kb
input:
158 3 0.001915550667 0.000000000000 0.034028370155 0.018544352097 0.000000000000 0.005907043128 5 0.136245359655 0.128970898398 0.014463156719 0.152180580927 0.000000000000 0.017124902848 0.038946667270 0.000000000000 0.100028820871 0.046477522374 3 0.000000000000 0.000000000000 0.002176023513 0.001...
output:
0.423868546774833 0.733382681393998 0.459210992944512 0.744609331345335 0.423264269681872 0.739563081225319 0.157225650059237 0.519037306762182 0.129453657611825 0.639860776134199 -0.000000000000296 0.598739375195539 -0.000000000001184 0.556194044205428 0.067132408636807 0.518986124548001 0.849439...
result:
ok OK
Test #44:
score: -100
Wrong Answer
time: 0ms
memory: 4224kb
input:
136 3 0.000000000000 0.023909081840 0.004747357667 0.000000000000 0.037644065273 0.052155951394 3 0.019338142325 0.000000000000 0.003097556485 0.018698869165 0.000000000000 0.010189096166 3 0.089777029945 0.000000000000 0.129191001371 0.059173456144 0.000000000000 0.047646040548 3 0.003324443491 0.0...
output:
-0.122664196971633 -0.132120221134418 -0.139292463835379 -0.114296575567005 -0.139786308888001 -0.175958498666274 -0.551852172991777 0.327921362175966 -0.561038821859031 0.350921575712233 -0.566763010057318 0.343904114445465 -0.134788962074485 0.448015137621847 -0.134219561338690 0.519111092981522...
result:
wrong answer Double parameter [name=x] equals to -0.122664, violates the range [-1e-06, 1]