QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#796460 | #9808. Fragile Pinball | Crysfly | AC ✓ | 65ms | 4084kb | C++14 | 8.0kb | 2024-12-01 19:16:54 | 2024-12-01 19:16:55 |
Judging History
answer
// what is matter? never mind.
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx,avx,avx2")
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ll long long
//#define ull unsigned long long
//#define int long long
#define SZ(x) ((int)((x).size()))
#define ALL(x) (x).begin(),(x).end()
using namespace std;
inline int read()
{
char c=getchar();int x=0;bool f=0;
for(;!isdigit(c);c=getchar())f^=!(c^45);
for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
return f?-x:x;
}
#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;
typedef double db;
const db eps=1e-10,pi=3.14159265358979323846;
int sgn(db x){return x<-eps?-1:x>eps;}
int cmp(db a,db b){return sgn(a-b);}
struct P{
db x,y;
P(db x=0,db y=0):x(x),y(y){}
P&operator +=(P o){return x+=o.x,y+=o.y,*this;}
P&operator -=(P o){return x-=o.x,y-=o.y,*this;}
P&operator *=(db o){return x*=o,y*=o,*this;}
P&operator /=(db o){return x/=o,y/=o,*this;}
friend P operator +(P a,P b){return a+=b;}
friend P operator -(P a,P b){return a-=b;}
friend P operator *(P a,db b){return a*=b;}
friend P operator /(P a,db b){return a/=b;}
friend bool operator <(P a,P b){return fabs(a.x-b.x)<eps?a.y<b.y:a.x<b.x;}
friend bool operator ==(P a,P b){return cmp(a.x,b.x)==0 && cmp(a.y,b.y)==0;}
friend bool operator !=(P a,P b){return !(a==b);}
friend db operator %(P a,P b){return a.x*b.x+a.y*b.y;} // dot
friend db operator *(P a,P b){return a.x*b.y-a.y*b.x;} // cross
P rot(db o){
db s=sin(o),c=cos(o);
return P(x*c-y*s,x*s+y*c);
}
P rot90(){return P(-y,x);}
db ang(){return atan2(y,x);}
db len(){return sqrt(x*x+y*y);}
db len2(){return x*x+y*y;}
int half(){return sgn(y)==1||(sgn(y)==0&&sgn(x)>=0);}
P unit(){return ((*this))/len();}
void read(){cin>>x>>y;}
void out(){cout<<"("<<x<<","<<y<<")"<<endl;}
};
bool cmp_dir(P a,P b){
if(a.half()!=b.half())return a.half()<b.half();
return sgn(a*b)>0;
}
db dis(P a,P b){return (a-b).len();}
db cross(P a,P b,P c){
// (a->b)*(a->c)
return (b.x-a.x)*(c.y-a.y)-(b.y-a.y)*(c.x-a.x);
}
int cmp3(P a,P b,P c){
return sgn(cross(a,b,c));
}
bool in_tri(P a,P b,P c,P p){
if(cmp3(a,b,c)<0) swap(b,c);
return cmp3(a,b,p)>=0 && cmp3(b,c,p)>=0 && cmp3(c,a,p)>=0;
}
db area_tri(P a,P b,P c){
return fabs(cross(a,b,c))/2;
}
bool paral(P p1,P p2,P q1,P q2){
// is parallel
return sgn((p2-p1)*(q2-q1))==0;
}
P interl(P p1,P p2,P q1,P q2){
// intersect point
db s1=cross(q1,q2,p1),s2=-cross(q1,q2,p2);
return (p1*s2+p2*s1)/(s1+s2);
}
bool inter(db l1,db r1,db l2,db r2){
if(l1>r1)swap(l1,r1); if(l2>r2)swap(l2,r2);
return !(cmp(r1,l2)==-1||cmp(r2,l1)==-1);
}
bool ismid(db a,db m,db b){
return sgn(a-m)==0||sgn(b-m)==0||((a<m)!=(b<m));
}
bool ismid(P a,P m,P b){
return ismid(a.x,m.x,b.x)&&ismid(a.y,m.y,b.y);
}
bool isseg(P p1,P p2,P q1,P q2){
return inter(p1.x,p2.x,q1.x,q2.x) && inter(p1.y,p2.y,q1.y,q2.y) &&
cmp3(p1,p2,q1)*cmp3(p1,p2,q2)<=0 && cmp3(q1,q2,p1)*cmp3(q1,q2,p2)<=0;
}
bool isseg_strict(P p1,P p2,P q1,P q2){
return cmp3(p1,p2,q1)*cmp3(p1,p2,q2)<0 && cmp3(q1,q2,p1)*cmp3(q1,q2,p2)<0;
}
struct L{
P a,b;
L(P aa=P(0,0),P bb=P(0,0)){a=aa,b=bb;}
bool in(P p){return sgn((b-a)*(p-a))>0;}
int in_sgn(P p){return sgn((b-a)*(p-a));}
P dir(){return b-a;}
bool onl(P p){
return cmp3(a,b,p)==0;
}
bool onseg(P p){
return onl(p)&&ismid(a,p,b);
}
bool onseg_strict(P p){
return onl(p)&&sgn((p-a)%(a-b))*sgn((p-b)%(a-b))<0;
}
void out(){cout<<"("<<a.x<<","<<a.y<<")---("<<b.x<<","<<b.y<<")\n";}
};
bool isseg(L a,L b){
return isseg(a.a,a.b,b.a,b.b);
}
bool paral(L a,L b){
// is parallel
return paral(a.a,a.b,b.a,b.b);
}
P operator &(L a,L b){
return interl(a.a,a.b,b.a,b.b);
}
bool samedir(L a,L b){
return paral(a,b) && sgn(a.dir()%b.dir())==1;
}
bool operator <(L a,L b){
if(samedir(a,b)) return b.in(a.a);
return cmp_dir(a.dir(),b.dir());
}
P proj(L a,P b){
P d=a.dir();
return a.a+d*((d%(b-a.a))/d.len2());
}
P reflect(L a,P b){
return proj(a,b)*2-b;
}
db dis(L a,P b){
db s=abs((b-a.a)*(b-a.b));
return s/dis(a.a,a.b);
}
db dis_seg(L a,P b){
if(a.a==a.b) return dis(a.a,b);
P h=proj(a,b);
if(ismid(a.a,h,a.b)) return dis(h,b);
return min(dis(a.a,b),dis(a.b,b));
}
db dis_ss(L a,L b){
if(isseg(a,b)) return 0;
return min(min(dis_seg(a,b.a),dis_seg(a,b.b)),min(dis_seg(b,a.a),dis_seg(b,a.b)));
}
db rad(P a,P b){
return atan2l(a*b,a%b);
}
// polygon
db area(vector<P>a){
db res=0;
For(i,0,(int)a.size()-1)res+=a[i]*a[(i+1)%a.size()];
return res/2;
}
int contain(vector<P>a,P p){
int n=a.size(),res=0;
For(i,0,n-1){
P u=a[i],v=a[(i+1)%n];
if(L(u,v).onseg(p))return 1;
if(cmp(u.y,v.y)<=0)swap(u,v);
if(cmp(p.y,u.y)>0 || cmp(p.y,v.y)<=0)continue;
res^=cmp3(p,u,v)>0;
}
return res*2;
}
vector<P>cut(vector<P>&a,P q1,P q2){
vector<P>b; int n=a.size();
For(i,0,n-1){
P p1=a[i],p2=a[(i+1)%n];
int d1=cmp3(q1,q2,p1),d2=cmp3(q1,q2,p2);
if(d1>=0)b.pb(p1);
if(d1*d2<0)b.pb(interl(p1,p2,q1,q2));
}
return b;
}
vector<P>cut(vector<P>&a,L l){
return cut(a,l.a,l.b);
}
vector<P>convex(vector<P>a){
int n=a.size(),m=0; if(n<=1)return a;
sort(a.begin(),a.end());
vector<P>st(n*2); int tp=0;
For(i,0,n-1){
while(tp>1 && cmp3(st[tp-2],st[tp-1],a[i])<=0)--tp;
st[tp++]=a[i];
}
int t=tp;
Rep(i,n-2,0){
while(tp>t && cmp3(st[tp-2],st[tp-1],a[i])<=0)--tp;
st[tp++]=a[i];
}
st.resize(tp-1);
return st;
}
// <=0 to <0: non-strict (need to unique points)
bool check(L a,L b,L c){
return c.in(a&b);
}
int checksgn(L a,L b,L c){
return c.in_sgn(a&b);
}
vector<P>hpis(vector<L>&l){
sort(l.begin(),l.end());
deque<L>q;
For(i,0,(int)l.size()-1){
if(i&&samedir(l[i],l[i-1]))continue;
while(q.size()>1 && !check(q[q.size()-2],q[q.size()-1],l[i]))q.pop_back();
while(q.size()>1 && !check(q[1],q[0],l[i]))q.pop_front();
q.pb(l[i]);
}
while(q.size()>2 && !check(q[q.size()-2],q[q.size()-1],q[0]))q.pop_back();
while(q.size()>2 && !check(q[1],q[0],q[q.size()-1]))q.pop_front();
vector<P>res;
For(i,0,(int)q.size()-1) res.pb(q[i]&q[(i+1)%q.size()]);
return res;
}
#define maxn 200005
#define inf 0x3f3f3f3f
int n;
vector<P>a;
vector<L>ls;
db res[63];
db interp(P p1,P p2,P q1,P q2){
// intersect point
db s1=cross(q1,q2,p1),s2=-cross(q1,q2,p2);
db ss=s1+s2; s1/=ss; s2/=ss;
return s1;
// return (p1*s2+p2*s1)/(s1+s2);
}
int dl[63],vis[63];
void calc(int u,vector<P> b){
if(u==0) return;
// cout<<"calc "<<u<<"\n";
if(area(b)<0) reverse(b.begin(),b.end());
// cout<<"b: \n"; for(auto p:b)p.out(); cout<<"------------\n";
auto chk=[&](P p1,P p2){
db l=-1e100,r=1e100;
// cout<<"p: \n";p1.out(),p2.out();
For(i,0,n-1) {
if(!paral(p1,p2,a[i],a[(i+1)%n]) && sgn((p2-p1)*(a[(i+1)%n]-a[i]))<0){
db ps=interp(p1,p2,a[i],a[(i+1)%n]);
l=max(l,ps);
}
if(!paral(p1,p2,b[i],b[(i+1)%n]) && sgn((p2-p1)*(b[(i+1)%n]-b[i]))>0){
db ps=interp(p1,p2,b[i],b[(i+1)%n]);
r=min(r,ps);
}
}
if(l>r) return;
P q1=p1*(1-l)+p2*l,q2=p1*(1-r)+p2*r;
// cout<<"chk:\n"; q1.out(),q2.out();
for(auto l:ls)
if(!isseg(l,L(q1,q2))) return ;
res[u]=max(res[u],dis(q1,q2));
};
vector<P>t=a;
for(auto ps:b) t.pb(ps);
for(auto [x,y]:ls) t.pb(x),t.pb(y);
For(i,0,SZ(t)-1) For(j,0,SZ(t)-1) if(t[i]!=t[j]) chk(t[i],t[j]);
}
void dfs(int u,vector<P>b){
//cout<<"dfs "<<u<<"\n";
calc(u,b);
if(u==n)return;
For(i,0,n-1) if(!vis[i]) {
L l=L(b[i],b[(i+1)%n]);
vector<P>c=b;
For(j,0,n-1) c[j]=reflect(l,c[j]);
dl[u]=i;
vis[i]=1;
ls.pb(l);
dfs(u+1,c);
ls.pop_back();
vis[i]=0;
}
}
signed main()
{
n=read();
a.resize(n);
For(i,0,n-1)a[i].x=read(),a[i].y=read();
dfs(0,a);
For(i,1,n)res[i]=max(res[i],res[i-1]);
For(i,0,n-1) For(j,0,n-1) res[0]=max(res[0],dis(a[i],a[j]));
For(i,0,n)printf("%.12lf\n",res[i]);
return 0;
}
/*
*/
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3920kb
input:
3 4 0 0 3 0 -1
output:
5.000000000000 8.000000000000 8.868185038798 12.210024810882
result:
ok 4 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
3 4 0 0 3 0 2
output:
5.000000000000 5.366563145999 6.111919138499 6.782203304417
result:
ok 4 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
3 4 0 0 3 0 1
output:
5.000000000000 6.184658438426 7.195223542745 8.653439499294
result:
ok 4 numbers
Test #4:
score: 0
Accepted
time: 0ms
memory: 4020kb
input:
3 62 -12 -48 100 -45 -96
output:
196.022957839127 312.041737832761 326.278477718776 452.807123729111
result:
ok 4 numbers
Test #5:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
3 90 99 -76 -57 99 84
output:
227.798156269975 274.352306457763 306.891779477092 330.105185546435
result:
ok 4 numbers
Test #6:
score: 0
Accepted
time: 1ms
memory: 4080kb
input:
3 -67 22 -86 12 -81 -12
output:
36.769552621700 39.563975005654 50.916855917106 72.277585517451
result:
ok 4 numbers
Test #7:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
3 71 -48 -81 2 -83 -44
output:
160.012499511757 308.056794567569 308.056794567569 308.056794567569
result:
ok 4 numbers
Test #8:
score: 0
Accepted
time: 1ms
memory: 4020kb
input:
3 44 -44 -31 -77 8 -98
output:
81.939001702486 115.792668299793 125.606044029920 167.936493496979
result:
ok 4 numbers
Test #9:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
3 40 91 -42 90 -5 -99
output:
195.256241897666 378.874266791999 378.874266791999 378.874266791999
result:
ok 4 numbers
Test #10:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
4 -10 -97 13 -98 90 50 42 97
output:
200.848201386022 269.687341465335 382.166068040496 476.599262830397 476.599262830397
result:
ok 5 numbers
Test #11:
score: 0
Accepted
time: 1ms
memory: 3960kb
input:
4 39 89 -72 -94 87 -58 90 36
output:
214.032707780844 413.744146609924 413.744146609924 502.965718248480 595.018212654905
result:
ok 5 numbers
Test #12:
score: 0
Accepted
time: 1ms
memory: 4084kb
input:
4 -6 -90 33 -75 4 97 -36 -69
output:
187.267188797184 269.549444397369 309.208057795515 364.701658071570 395.378287554406
result:
ok 5 numbers
Test #13:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
4 44 81 27 81 60 -57 83 3
output:
141.890803084626 187.122714959936 251.476689548055 274.127656843485 286.319517405730
result:
ok 5 numbers
Test #14:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
4 96 -13 99 1 -67 -36 67 -37
output:
170.073513516949 183.085426249045 223.212103517245 277.379184197402 306.150397270401
result:
ok 5 numbers
Test #15:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
4 -18 -98 80 -59 73 68 -78 -62
output:
199.251097863977 378.325878824374 378.325878824375 512.617543811858 557.387457615911
result:
ok 5 numbers
Test #16:
score: 0
Accepted
time: 6ms
memory: 3896kb
input:
5 -90 41 -93 27 94 79 83 91 -44 94
output:
194.095337398918 206.355524454425 256.731302000891 337.346903462341 377.929160408348 396.662938660599
result:
ok 6 numbers
Test #17:
score: 0
Accepted
time: 6ms
memory: 3820kb
input:
5 78 -95 96 29 -95 34 -76 -82 64 -95
output:
215.800834104041 379.474351826665 555.074789479486 584.007527316152 640.709438394289 693.172491602917
result:
ok 6 numbers
Test #18:
score: 0
Accepted
time: 6ms
memory: 4004kb
input:
5 45 -26 38 62 -31 57 -40 -43 -13 -91
output:
161.276160668587 297.827772991761 329.103532279919 455.419819785877 496.858777460312 600.672113063065
result:
ok 6 numbers
Test #19:
score: 0
Accepted
time: 8ms
memory: 4004kb
input:
5 -28 78 -63 63 -85 30 -7 -80 61 -77
output:
187.018715640975 342.371973695578 437.283084003414 525.978277968785 704.064453641558 704.064453641558
result:
ok 6 numbers
Test #20:
score: 0
Accepted
time: 6ms
memory: 3824kb
input:
5 -20 91 -21 90 4 -99 18 -92 41 57
output:
191.509790872425 232.385525097110 282.236079299193 389.306701189258 404.075195946429 477.051235797518
result:
ok 6 numbers
Test #21:
score: 0
Accepted
time: 6ms
memory: 3812kb
input:
5 40 -91 65 75 -50 -86 -48 -87 27 -96
output:
197.853481141980 296.422933351982 328.653687667103 385.630036256522 404.176017044456 404.176017044456
result:
ok 6 numbers
Test #22:
score: 0
Accepted
time: 52ms
memory: 3924kb
input:
6 86 57 51 69 2 -52 18 -100 89 -84 87 33
output:
172.191753577226 341.135135135135 400.666074746635 501.268188074797 565.608985155262 622.690844361706 665.700571573285
result:
ok 7 numbers
Test #23:
score: 0
Accepted
time: 52ms
memory: 4020kb
input:
6 99 49 88 89 55 54 23 -38 18 -72 84 -63
output:
175.559106855782 264.079024002673 313.656233652890 390.454592258694 470.752012302536 521.830923400922 550.768827220738
result:
ok 7 numbers
Test #24:
score: 0
Accepted
time: 58ms
memory: 3868kb
input:
6 53 36 -5 100 -56 98 -79 14 -84 -24 73 -27
output:
179.627392120467 314.862786031767 385.343658453595 493.193630414759 606.181473809272 673.308818766481 673.308818766481
result:
ok 7 numbers
Test #25:
score: 0
Accepted
time: 59ms
memory: 3872kb
input:
6 76 84 32 100 77 -80 91 -17 95 37 86 79
output:
185.539753152795 211.907327945103 264.716755227009 315.062400900961 324.874605299656 356.526327351885 356.526327351885
result:
ok 7 numbers
Test #26:
score: 0
Accepted
time: 56ms
memory: 4008kb
input:
6 -35 12 -31 -22 -6 -81 96 -21 69 64 -29 65
output:
163.248277173145 291.515435867978 399.010163643814 496.206291028979 585.323790738471 681.215883571867 681.215883571867
result:
ok 7 numbers
Test #27:
score: 0
Accepted
time: 55ms
memory: 3956kb
input:
6 89 -75 97 1 8 95 -21 87 -23 -98 75 -87
output:
198.725941940150 382.902721418515 570.267308822348 699.344145373211 793.027042319521 950.401188846336 950.401188846336
result:
ok 7 numbers
Test #28:
score: 0
Accepted
time: 53ms
memory: 3880kb
input:
6 -69 88 -100 50 -100 -50 28 -25 70 26 65 90
output:
216.390850083824 349.424957195292 517.364845535935 604.950699399472 740.926805766348 867.573761534729 994.176063711637
result:
ok 7 numbers
Test #29:
score: 0
Accepted
time: 57ms
memory: 3872kb
input:
6 55 99 -32 6 -38 -60 89 -99 97 -98 81 73
output:
201.427406278292 379.481415523893 457.672576389815 590.726077870105 652.191527379414 771.740899290468 888.951291572580
result:
ok 7 numbers
Test #30:
score: 0
Accepted
time: 55ms
memory: 4020kb
input:
6 -64 25 -59 -69 23 -94 73 -88 98 20 92 89
output:
218.552053296234 371.496824368326 490.995916107724 639.683072892487 746.655933290615 869.842554905857 875.951296285141
result:
ok 7 numbers
Test #31:
score: 0
Accepted
time: 52ms
memory: 4084kb
input:
6 -62 -66 78 -48 99 89 73 94 -91 73 -89 -60
output:
239.885389300808 382.621584748225 560.830410535877 628.056180305479 749.571049616148 842.648330995755 933.084333761492
result:
ok 7 numbers
Test #32:
score: 0
Accepted
time: 57ms
memory: 3960kb
input:
6 91 49 68 88 -51 98 -95 35 -21 -72 92 -31
output:
198.305320150519 382.202915459765 500.539066260418 668.390333866517 835.277970341262 965.787016375946 1130.006060320629
result:
ok 7 numbers
Test #33:
score: 0
Accepted
time: 55ms
memory: 3896kb
input:
6 -49 -75 88 10 76 64 -97 46 -75 -62 -72 -67
output:
197.648678214654 371.898218573908 549.691700439943 696.682966717667 739.764248129338 784.403044133067 784.403044133067
result:
ok 7 numbers
Test #34:
score: 0
Accepted
time: 54ms
memory: 4072kb
input:
6 -100 90 -25 -88 85 -85 97 31 83 99 22 100
output:
254.656631564937 407.460694453042 579.314642709576 748.450978058451 833.000173773527 949.747074756198 1042.029416989735
result:
ok 7 numbers
Test #35:
score: 0
Accepted
time: 65ms
memory: 3876kb
input:
6 -61 98 -93 70 -98 34 -74 -94 94 -87 95 36
output:
244.167974968053 482.589805480785 586.628720030649 765.081070551089 925.800448168069 1083.663061989394 1146.063506475413
result:
ok 7 numbers
Test #36:
score: 0
Accepted
time: 54ms
memory: 4016kb
input:
6 -86 -4 -39 -8 -6 -9 39 -6 25 8 -64 7
output:
125.015998976131 127.427807997104 142.203492675367 158.035490388818 158.035490388818 158.171401604882 168.584662376119
result:
ok 7 numbers
Test #37:
score: 0
Accepted
time: 6ms
memory: 3928kb
input:
5 69 -12 69 13 -24 17 -93 -2 -55 -14
output:
162.692962355475 324.000000000000 324.000000000000 329.038865650545 329.038865650545 331.999189196290
result:
ok 6 numbers
Test #38:
score: 0
Accepted
time: 6ms
memory: 4012kb
input:
5 26 46 -20 38 -23 22 -16 -75 24 -30
output:
128.082004981184 203.821452147112 251.133813177129 288.823087576475 341.563191710892 389.090671752486
result:
ok 6 numbers
Test #39:
score: 0
Accepted
time: 52ms
memory: 3952kb
input:
6 -58 -21 -46 -25 7 -25 45 -21 47 25 -82 17
output:
132.563192478154 257.061493267184 282.815329161785 340.924108711198 415.734467087734 415.734467087734 415.734467087734
result:
ok 7 numbers
Test #40:
score: 0
Accepted
time: 55ms
memory: 4080kb
input:
6 19 -61 36 -24 17 76 0 93 -31 52 -3 -93
output:
186.024191975130 203.195561326481 354.195907380626 369.555485806916 396.635303666844 500.349135682339 500.349135682339
result:
ok 7 numbers
Test #41:
score: 0
Accepted
time: 53ms
memory: 3876kb
input:
6 33 -70 44 32 -31 68 -35 25 -31 -50 8 -63
output:
152.118374958451 228.854975912695 330.282346641011 431.925596947998 439.741714577880 527.333138423539 546.341421819225
result:
ok 7 numbers
Test #42:
score: 0
Accepted
time: 56ms
memory: 3816kb
input:
6 10 94 -35 45 -23 -79 31 -51 37 -40 36 20
output:
176.119277763679 244.082264160135 326.065363137960 427.776825379811 478.048055532321 550.232577212896 559.581247728871
result:
ok 7 numbers
Test #43:
score: 0
Accepted
time: 57ms
memory: 4012kb
input:
6 63 -31 42 46 -79 -26 -67 -31 -10 -52 8 -52
output:
142.088000900850 271.361751173595 284.291086170634 342.056618446414 427.942088219206 428.739918264755 428.739918264755
result:
ok 7 numbers
Test #44:
score: 0
Accepted
time: 58ms
memory: 4072kb
input:
6 4 58 -5 -64 88 -16 93 1 67 41 16 59
output:
127.314571043538 245.954067006267 306.915430542797 382.595057864385 469.278641208369 473.926991444092 473.926991444092
result:
ok 7 numbers
Test #45:
score: 0
Accepted
time: 54ms
memory: 4024kb
input:
6 -30 -90 7 -96 47 -35 56 -12 43 68 33 80
output:
181.298097066682 355.784828411940 357.571241396228 373.868815757984 502.972150764280 502.972150764280 502.972150764280
result:
ok 7 numbers
Test #46:
score: 0
Accepted
time: 52ms
memory: 3924kb
input:
6 -34 72 -47 -49 -43 -51 23 -73 95 -13 44 69
output:
155.801155323059 295.765192644990 422.425052480404 529.529010619029 660.528238394412 761.686572300104 886.232239093678
result:
ok 7 numbers
Test #47:
score: 0
Accepted
time: 59ms
memory: 3816kb
input:
6 87 16 60 72 -64 -64 -3 -99 30 -94 48 -82
output:
184.043473125237 359.345786475904 406.697511106831 521.115561033514 629.683616598328 629.683616598328 629.683616598328
result:
ok 7 numbers
Test #48:
score: 0
Accepted
time: 57ms
memory: 3884kb
input:
6 82 10 30 91 -49 73 -41 -85 57 -77 80 -22
output:
189.781453256107 339.863431198409 507.004697726373 598.804219118381 691.792748251316 736.135162510376 745.792273615027
result:
ok 7 numbers
Test #49:
score: 0
Accepted
time: 58ms
memory: 3880kb
input:
6 10 -88 92 -12 94 -3 70 69 -94 -20 -22 -87
output:
188.767052209860 367.456664111566 489.911829666938 545.447218447667 667.490580459398 669.724521187285 679.242678289317
result:
ok 7 numbers
Test #50:
score: 0
Accepted
time: 50ms
memory: 4000kb
input:
6 -5 82 -9 14 3 -92 6 -73 9 5 -1 98
output:
190.042100598788 190.626191347323 191.093643760279 191.093643760279 191.093643760279 191.093643760279 191.093643760279
result:
ok 7 numbers
Test #51:
score: 0
Accepted
time: 51ms
memory: 3924kb
input:
6 3 98 -19 16 -2 -99 7 -92 19 21 14 68
output:
197.063441561341 200.897092782857 214.550260357803 235.204733013323 235.204733013323 251.755832368840 251.755832368840
result:
ok 7 numbers
Test #52:
score: 0
Accepted
time: 55ms
memory: 3880kb
input:
6 17 80 11 92 -22 66 -23 -63 -5 -98 27 41
output:
190.672494083441 214.543315675785 292.333949074324 355.378463813608 379.549512997398 405.501437501945 405.501437501945
result:
ok 7 numbers
Test #53:
score: 0
Accepted
time: 50ms
memory: 4068kb
input:
6 28 25 -6 97 -29 14 -29 -14 3 -99 29 16
output:
196.206523846686 206.108484340342 215.865811286592 264.438671935110 318.852428692514 379.044235768147 420.579935062781
result:
ok 7 numbers
Test #54:
score: 0
Accepted
time: 54ms
memory: 3928kb
input:
6 4 99 -26 75 -15 -92 31 -60 31 61 12 95
output:
191.942699783034 241.174735699953 385.763720416336 417.323187295847 481.022951189609 551.685880915146 551.685880915146
result:
ok 7 numbers
Test #55:
score: 0
Accepted
time: 56ms
memory: 3928kb
input:
6 -11 -97 47 -28 39 60 -49 11 -49 -16 -19 -91
output:
164.769536019253 223.818775976719 314.977008184643 425.351525168056 459.186550661097 555.289044411369 555.289044411369
result:
ok 7 numbers
Test #56:
score: 0
Accepted
time: 58ms
memory: 3884kb
input:
6 18 93 -6 99 -14 -95 -5 -99 33 -74 49 0
output:
198.002525236422 285.155350791277 416.661683304230 490.473347372161 615.656789873592 653.344724694353 653.344724694353
result:
ok 7 numbers
Test #57:
score: 0
Accepted
time: 50ms
memory: 3868kb
input:
6 -24 58 -52 51 -79 -36 -53 -50 91 -24 96 -16
output:
176.139149538085 322.416479289035 409.003632133454 517.485721542874 626.301040753849 651.420569751712 697.645865463996
result:
ok 7 numbers
Test #58:
score: 0
Accepted
time: 58ms
memory: 3952kb
input:
6 11 69 -25 67 -91 -28 -4 -69 99 6 59 56
output:
193.018133863117 318.007206725259 446.787216830640 583.437025700868 669.450359328445 787.321218720368 801.955099265270
result:
ok 7 numbers
Test #59:
score: 0
Accepted
time: 59ms
memory: 3888kb
input:
6 -52 59 -62 54 -99 6 -91 -28 -18 -68 68 50
output:
177.101665717745 335.053053838959 390.147403067349 483.122664948594 629.101481593096 651.340287750049 651.340287750049
result:
ok 7 numbers
Test #60:
score: 0
Accepted
time: 57ms
memory: 3816kb
input:
6 8 -79 72 -55 94 -27 -55 66 -77 -50 -44 -71
output:
175.641680702503 349.237673628416 388.544522175245 504.040704430609 661.861823034337 661.861823034337 661.861823034337
result:
ok 7 numbers
Test #61:
score: 0
Accepted
time: 53ms
memory: 3872kb
input:
6 -14 98 -38 -90 -36 -91 -33 -92 89 -5 73 57
output:
190.947636801297 371.885120810015 546.271726739218 726.773310896571 726.773310896571 810.810256778867 821.837696313120
result:
ok 7 numbers
Test #62:
score: 0
Accepted
time: 56ms
memory: 3924kb
input:
6 -85 32 -75 -54 22 -96 47 -85 87 -22 89 -5
output:
180.277563773199 348.298087205094 513.866351180346 525.734650937947 698.981654375488 698.981654375488 698.981654375488
result:
ok 7 numbers
Test #63:
score: 0
Accepted
time: 56ms
memory: 3816kb
input:
6 94 -32 99 7 63 77 -94 33 -46 -88 68 -72
output:
198.919581740964 388.113303164616 531.424598932403 694.419504712436 777.104529360873 902.649975060521 953.135759357323
result:
ok 7 numbers
Extra Test:
score: 0
Extra Test Passed