QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#665751#7568. KeychainCrysflyAC ✓9348ms12488kbC++1411.1kb2024-10-22 15:07:062024-10-22 15:07:07

Judging History

你现在查看的是最新测评结果

  • [2024-10-22 15:07:07]
  • 评测
  • 测评结果:AC
  • 用时:9348ms
  • 内存:12488kb
  • [2024-10-22 15:07:06]
  • 提交

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 long double db;
const db eps=1e-5,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; int id;
	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; int id;
	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 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;
}
db diam(vector<P>a){
	int n=a.size();
	if(n<=1)return 0;
	int ii=0,jj=0;
	For(k,1,n-1){
		if(a[k]<a[ii])ii=k;
		if(a[jj]<a[k])jj=k;
	}
	int i=ii,j=jj;
	db res=dis(a[i],a[j]);
	do{
		if((a[(i+1)%n]-a[i])*(a[(j+1)%n]-a[j])>=0) (++j)%=n;
		else (++i)%=n;
		res=max(res,dis(a[i],a[j]));
	}while(i!=ii||j!=jj);
	return res;
}

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<L>hpis(vector<L>&l,bool is=0){
	if(!is)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<L>res;
	For(i,0,(int)q.size()-1) res.pb(q[i]);
	return res;
}

mt19937_64 rnd(64);

vector<L>cut(vector<L>&a,L l){
	vector<L>b; int n=a.size();
	For(i,0,n-1){
		L a1=a[i],a2=a[(i+1)%n],a3=a[(i+2)%n];
		int d1=checksgn(a1,a2,l),d2=checksgn(a2,a3,l);
		if(d1>0 || d2>0 || (d1==0&&d2==0)) b.pb(a2);
		if(d1>=0 && d2<0) b.pb(l);
	}
	return b;
}

L bisector(P a,P b){
	// contain a
	P o=(a+b)*0.5;
	return L(o,o+((b-a).rot90()));
}
vector<vector<L>> voronoi(vector<P>a){
	int n=a.size();
	vector<P>b=a;
	shuffle(b.begin(),b.end(),rnd);
	const db U=4e9;
	vector<vector<L>> res(n,{
		L(P(-U,-U),P(U,-U)),
		L(P(U,-U),P(U,U)),
		L(P(U,U),P(-U,U)),
		L(P(-U,U),P(-U,-U))
	});
	For(i,0,n-1){
		for(auto x:b){
			if(dis(x,a[i])>eps) {
				L tmp=bisector(a[i],x); tmp.id=x.id;
				res[i]=cut(res[i],tmp);
			}
		}
	}
	return res;
}
vector<vector<L>> neg_voronoi(vector<P>a){
	int n=a.size();
	vector<P>b=a;
	shuffle(b.begin(),b.end(),rnd);
	const db U=4e9;
	vector<vector<L>> res(n,{
		L(P(-U,-U),P(U,-U)),
		L(P(U,-U),P(U,U)),
		L(P(U,U),P(-U,U)),
		L(P(-U,U),P(-U,-U))
	});
	For(i,0,n-1){
		for(auto x:b){
			if(dis(x,a[i])>eps){
				L tmp=bisector(x,a[i]); tmp.id=x.id;
				res[i]=cut(res[i],tmp);
			}
			if(res[i].empty()) break;
		}
	}
	return res;
}

#define maxn 500005
#define inf 0x3f3f3f3f

int n;
vector<P>a;
int x[maxn],y[maxn];
db res=4e18,R;
int X,Y,Z;
bool is_l=0;

vector<L> operator &(vector<L>a,vector<L>b){
	int n=a.size()+b.size();
	vector<L>c(n);
	merge(ALL(a),ALL(b),c.begin());
	return hpis(c,1);
}

namespace Int{

struct P{
	int x,y;
	P(int x=0,int 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 *=(int o){return x*=o,y*=o,*this;}
	P&operator /=(int 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,int b){return a*=b;}
	friend P operator /(P a,int 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 int operator %(P a,P b){return a.x*b.x+a.y*b.y;} // dot
	friend int operator *(P a,P b){return a.x*b.y-a.y*b.x;} // cross
	
	P rot90(){return P(-y,x);}
	db ang(){return atan2(y,x);}
	db len(){return sqrt(x*x+y*y);}
	int 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;}
};

int 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);
}
void interl(P p1,P p2,P q1,P q2){
	// intersect point
	int s1=cross(q1,q2,p1),s2=-cross(q1,q2,p2);
	P ps=(p1*s2+p2*s1);
	X=ps.x,Y=ps.y;
	Z=(s1+s2)*2;
}
P go(::P a){
	return P(round(a.x),round(a.y));
}
void frac_inter(L a,L b){
	a.a*=2,a.b*=2,b.a*=2,b.b*=2;
	interl(go(a.a),go(a.b),go(b.a),go(b.b));
}

}

void solve_line(){
	if(a.size()==1) {
		res=0,is_l=1;
		X=-a[0].y,Y=a[0].x,Z=0;
		return;
	}
	vector<P>b=convex(a);
	int m=b.size();
	int p=1;
	For(i,0,m-1){
		P u=b[i],v=b[(i+1)%m];
		while(cross(u,v,b[(p+1)%m])>cross(u,v,b[p])) p=(p+1)%m;
		db val=cross(u,v,b[p]);
		val/=dis(u,v),val/=2;
		if(val<res){
//			u.out(),v.out(),b[p].out();puts("---");
			res=val,is_l=1;
			P tmp=(v-u).rot90();
			X=round(v.x-u.x);
			Y=round(v.y-u.y);
			swap(X,Y),X=-X;
			Z=round((tmp%b[i])+(tmp%b[p]));
			Z/=2;
		}
	}
}
signed main()
{
	n=read(),a.resize(n);
	For(i,0,n-1) cin>>x[i]>>y[i],a[i].x=x[i],a[i].y=y[i],a[i].id=i;
	
//	if(n==100){
//		For(i,75,n-1) cout<<x[i]<<" "<<y[i]<<"\n";
//	}
	
	solve_line();
	
	auto vd=voronoi(a),nvd=neg_voronoi(a);
	For(i,0,n-1){
		sort(ALL(vd[i]));
		sort(ALL(nvd[i]));
	}
	For(i,0,n-1)if(nvd[i].size()){
		For(j,0,n-1)if(vd[j].size()){
			auto t=(nvd[i]&vd[j]);
			if(t.size()<3) continue;
		//	cout<<"siz "<<i<<" "<<j<<" "<<t.size()<<"\n";
			For(ii,0,(int)t.size()-1){
				P ps=(t[ii]&t[(ii+1)%t.size()]);
			//	if(fabs(ps.x)>=999999 || fabs(ps.y)>=999999) continue;
				db mx=dis(ps,a[i]),mn=dis(ps,a[j]);
			//	For(k,0,n-1) mn=min(mn,dis(a[k],ps)),mx=max(mx,dis(a[k],ps));
				db val=(mx-mn)*0.5;
				if(val<res){
				//	cout<<"ans "<<val<<" "<<ps.x<<" "<<ps.y<<"\n";
					res=val,is_l=0;
					R=(mn+mx)*0.5;
					Int::frac_inter(t[ii],t[(ii+1)%SZ(t)]);
				}
			}
		}
	}
	int k=__gcd(__gcd(abs(X),abs(Y)),abs(Z));
	X/=k,Y/=k,Z/=k;
	printf("%.12lf\n",(double)res);
	if(!is_l)printf("C %lld %lld %lld %.12lf\n",X,Y,Z,(double)R);
	else printf("L %lld %lld %lld\n",X,Y,Z);
	return 0;
}
/*
2
1 1
2 2
*/

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 5848kb

input:

4
2 1
1 3
2 4
7 2

output:

0.270690632575
C 8 5 2 2.770690632575

result:

ok jury ans = 0.270690633, participant ans = 0.270690633

Test #2:

score: 0
Accepted
time: 0ms
memory: 5984kb

input:

7
26919 7739
85584 91359
47712 21058
13729 26355
16636 96528
88747 93023
46770 1150

output:

9663.879597491019
C 112674302524076 183554866947533 3011524769 50864.332053034581

result:

ok jury ans = 9663.879597491, participant ans = 9663.879597491

Test #3:

score: 0
Accepted
time: 1ms
memory: 5984kb

input:

10
756 624
252 208
504 416
378 312
203 287
329 391
0 0
707 703
126 104
581 599

output:

46.059152882071
L -104 126 7525

result:

ok jury ans = 46.059152882, participant ans = 46.059152882

Test #4:

score: 0
Accepted
time: 1ms
memory: 5972kb

input:

1
15782 63130

output:

0.000000000000
L -31565 7891 0

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #5:

score: 0
Accepted
time: 1ms
memory: 5840kb

input:

2
94217 66974
75089 40029

output:

0.000000000000
L -26945 19128 -1257598393

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #6:

score: 0
Accepted
time: 0ms
memory: 5936kb

input:

3
48303 6057
77370 21547
87988 74434

output:

0.000000000000
C 109980206721647 155256378115679 2745587218 51159.517846325580

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #7:

score: 0
Accepted
time: 1ms
memory: 5904kb

input:

4
91497 34248
20062 67825
81300 76644
27657 65928

output:

3533.571358362806
C 575215467876 429424047403 10429270 40530.853287994971

result:

ok jury ans = 3533.571358363, participant ans = 3533.571358363

Test #8:

score: 0
Accepted
time: 1ms
memory: 6084kb

input:

5
69930 13744
97997 49343
74612 89749
36739 52364
89397 14014

output:

5337.853529781178
C 123647128406535 90068018981621 1837883658 36059.790535909946

result:

ok jury ans = 5337.853529781, participant ans = 5337.853529781

Test #9:

score: 0
Accepted
time: 1ms
memory: 5848kb

input:

6
24017 52829
277 30862
67924 91959
21473 63146
96602 58155
873 44434

output:

9102.821954756813
C 385087733514103 178655356183771 6184976998 54224.449323742607

result:

ok jury ans = 9102.821954757, participant ans = 9102.821954757

Test #10:

score: 0
Accepted
time: 1ms
memory: 5972kb

input:

7
2451 56672
42971 77140
61236 94170
81861 25235
68565 61883
16219 86220
16322 5864

output:

10266.420121489611
C 126350248388825 141147220029391 2945356662 39484.566005249457

result:

ok jury ans = 10266.420121490, participant ans = 10266.420121490

Test #11:

score: 0
Accepted
time: 1ms
memory: 5992kb

input:

8
21297 95757
45252 58658
94961 72033
66596 11671
64876 30371
66805 92765
94633 86321
40385 47610

output:

15105.319261229644
C 465051544188545 452234886264771 6714637102 40637.951273332532

result:

ok jury ans = 15105.319261230, participant ans = 15105.319261230

Test #12:

score: 0
Accepted
time: 1ms
memory: 6012kb

input:

9
99732 23947
23186 80590
12619 74244
75677 73760
36840 74512
6496 34550
8184 26365
6 6454
55215 18208

output:

14885.231675918514
C 58692905277501 60496778984945 1319201462 44542.553364482366

result:

ok jury ans = 14885.231675919, participant ans = 14885.231675919

Test #13:

score: 0
Accepted
time: 1ms
memory: 5864kb

input:

10
67694 99307
56012 50355
42446 60253
398 14855
82806 93134
53045 14189
19963 51406
72238 90783
58977 92553
91808 75523

output:

21890.672122746917
C 48293860224471 157269094149141 2072072122 46611.325831903720

result:

ok jury ans = 21890.672122747, participant ans = 21890.672122747

Test #14:

score: 0
Accepted
time: 2ms
memory: 6044kb

input:

50
28303 78635
98527 4836
99469 93880
46037 26886
31814 11072
82640 89089
80483 78420
65817 78003
4325 65401
87358 36627
69197 63160
8603 49295
15942 84649
58111 43187
59748 20332
26719 92486
4108 32640
60387 68724
43155 47327
9591 99815
37905 98234
25483 54545
89447 86614
63335 62433
60686 44416
15...

output:

27130.427562903922
C 208208852697721 201287291063801 3707918566 37991.619899059740

result:

ok jury ans = 27130.427562904, participant ans = 27130.427562904

Test #15:

score: 0
Accepted
time: 0ms
memory: 5988kb

input:

50
86917 20549
60266 58924
3312 36573
27556 20198
9678 20153
69075 96294
48970 53352
72362 91554
44370 89782
21855 61657
57607 89111
87444 40267
39146 58700
27668 65946
45465 14550
28873 59735
15851 10864
2791 66253
20744 34442
28637 44319
1253 6922
16147 51571
72072 39253
78169 46742
22183 97841
22...

output:

28626.393877270453
C 103109348938657 84145998881405 1825872062 39070.204213605495

result:

ok jury ans = 28626.393877270, participant ans = 28626.393877270

Test #16:

score: 0
Accepted
time: 3024ms
memory: 10412kb

input:

3000
92948 78658
99013 65575
62135 58049
73566 5036
62021 41092
18242 18337
69531 93648
48044 47267
90750 98807
54790 73639
70408 13307
68742 82075
21339 47233
75103 97053
10958 13262
52441 39682
55881 21527
36660 9741
10401 25304
66452 74105
21712 20753
6193 73558
64161 45507
38414 99590
87783 9105...

output:

33766.313674908815
C 31773882892491 31297645626819 636923746 35113.457699724655

result:

ok jury ans = 33766.313674909, participant ans = 33766.313674909

Test #17:

score: 0
Accepted
time: 3010ms
memory: 10504kb

input:

3000
27214 96226
85099 19662
65979 35983
30738 22695
64232 25826
80332 65955
38018 8993
54589 60818
30793 23188
13634 33910
69713 39258
47582 73047
93237 21284
20313 19811
85782 7480
54595 6931
43277 24097
38652 42511
63644 12419
85498 83369
9407 29441
96858 70585
82028 22493
77595 59552
49280 68829...

output:

34199.412450071599
C 2550123021178 2715323152220 52629791 35900.854383383106

result:

ok jury ans = 34199.412450072, participant ans = 34199.412450072

Test #18:

score: 0
Accepted
time: 3006ms
memory: 10364kb

input:

3000
37134 38141
82080 22442
5063 78677
12256 16007
66442 34908
66767 62266
6505 59579
96375 74369
11250 31503
48132 83287
93364 65208
26422 39673
5546 6228
65525 82983
20191 26045
81096 33767
90261 77975
16296 40040
30339 15599
4542 16980
32342 97718
22762 67611
64654 50785
68081 19514
35124 33147
...

output:

34115.505643941106
C 975043865351 1016528114261 20086362 35250.466597728584

result:

ok jury ans = 34115.505643941, participant ans = 34115.505643941

Test #19:

score: 0
Accepted
time: 7ms
memory: 6020kb

input:

100
19268 48372
48595 53219
31920 44184
21912 55164
42130 54945
19984 48704
4648 55722
40500 43319
42508 53624
24054 54237
45679 45165
7169 51472
1871 45270
37289 57530
28573 49283
7029 49215
44885 51786
32613 49560
10985 57784
37606 46069
24510 55357
41305 49669
13344 48648
13718 54893
12753 47755
...

output:

7198.703174969629
C 157388258937 2065798796711 3727378 503708.256817895861

result:

ok jury ans = 7198.703174970, participant ans = 7198.703174970

Test #20:

score: 0
Accepted
time: 5ms
memory: 5996kb

input:

100
57704 46888
86842 42687
85439 36827
60194 50133
95958 37663
68574 48860
60804 40463
99285 30498
86514 35268
78568 36730
89913 36994
66635 41831
87563 41434
89624 40740
89642 30658
78771 38490
84061 35472
67029 45196
72874 38697
91088 32916
50673 46863
56910 44507
60477 44574
98348 35464
86335 34...

output:

5627.185312403541
C 197475800835 578495022611 14182 43038408.810507968068

result:

ok jury ans = 5627.185312404, participant ans = 5627.185312404

Test #21:

score: 0
Accepted
time: 6ms
memory: 6244kb

input:

100
36940 69135
2650 85030
40502 97427
94724 76410
30024 89470
88244 38884
31880 58708
84518 54289
43910 83402
84355 56828
80732 97217
30977 88024
18859 76936
55086 57274
20500 82287
22964 67111
93768 97769
29970 91772
36269 71348
70332 52328
27049 80960
6407 72600
40903 90864
53156 84794
91227 8100...

output:

21510.222753195707
C 57532907745009 82026291586889 1105113262 29068.173909941026

result:

ok jury ans = 21510.222753196, participant ans = 21510.222753196

Test #22:

score: 0
Accepted
time: 6ms
memory: 6048kb

input:

100
68023 74737
73738 65097
49745 43105
96797 62905
53809 26796
84698 70442
67067 6393
71539 36404
67660 34832
66833 80545
62325 62494
75928 86937
84157 27616
73589 57334
76497 11703
56575 80314
90841 53175
64247 83001
49283 16735
62540 18314
81676 5039
57097 39741
70209 73607
75279 25719
62717 3555...

output:

23322.482508697063
C 69143500227835 46998187043303 931564450 30234.802053284220

result:

ok jury ans = 23322.482508697, participant ans = 23322.482508697

Test #23:

score: 0
Accepted
time: 1631ms
memory: 8080kb

input:

1100
0 4969
2 4945
4 4929
6 4916
8 4905
10 4895
13 4881
18 4862
28 4829
35 4810
40 4797
46 4783
50 4774
55 4763
71 4731
84 4708
90 4698
103 4677
119 4653
133 4634
150 4611
161 4597
188 4565
205 4546
216 4534
241 4508
244 4505
275 4475
292 4459
304 4448
321 4433
342 4415
373 4389
388 4377
402 4366
42...

output:

4999.493561221202
C 50009 518018 1 513019.458189581055

result:

ok jury ans = 4999.493561221, participant ans = 4999.493561221

Test #24:

score: 0
Accepted
time: 1632ms
memory: 7980kb

input:

1100
0 4971
3 4937
4 4930
8 4905
13 4881
21 4853
27 4833
31 4821
39 4800
43 4790
51 4772
57 4759
66 4741
74 4726
92 4695
98 4685
103 4677
120 4652
127 4642
157 4602
176 4579
213 4537
236 4513
247 4502
278 4472
313 4440
330 4425
337 4419
368 4393
389 4376
425 4348
449 4330
464 4319
519 4280
547 4261
...

output:

4999.490231282430
C 150000 -1482923 3 499308.142284272937

result:

ok jury ans = 4999.490231282, participant ans = 4999.490231282

Test #25:

score: 0
Accepted
time: 1615ms
memory: 7992kb

input:

1100
0 49014
3 48003
5 47564
7 47180
11 46554
13 46268
14 46143
16 45899
19 45542
21 45325
22 45222
25 44916
28 44630
32 44276
37 43851
39 43692
42 43457
48 43018
50 42879
56 42473
59 42278
67 41783
73 41430
81 40983
87 40672
90 40517
94 40315
101 39962
107 39666
117 39201
124 38891
128 38716
131 38...

output:

4999.462597593430
C -1041315 100011 2 525657.906664814916

result:

ok jury ans = 4999.462597593, participant ans = 4999.462597593

Test #26:

score: 0
Accepted
time: 1651ms
memory: 8048kb

input:

1100
0 49100
1 48615
2 48269
4 47785
5 47555
7 47179
8 47007
9 46847
11 46538
17 45769
20 45423
21 45322
25 44928
26 44831
32 44266
34 44097
38 43767
47 43088
52 42742
54 42608
64 41967
69 41663
74 41376
80 41042
88 40609
99 40054
105 39763
110 39524
117 39207
124 38891
131 38587
133 38503
142 38129...

output:

4999.449911595367
C 2109001 200000 4 522251.641589467821

result:

ok jury ans = 4999.449911595, participant ans = 4999.449911595

Test #27:

score: 0
Accepted
time: 5434ms
memory: 9696kb

input:

2000
0 49693
2 49452
3 49370
4 49295
6 49165
7 49111
9 49008
10 48958
18 48630
23 48451
29 48268
31 48212
34 48129
36 48078
42 47927
50 47745
53 47677
54 47655
60 47530
74 47263
81 47140
85 47073
101 46808
108 46701
118 46552
137 46290
140 46249
145 46182
157 46028
165 45929
170 45870
188 45659
197 ...

output:

0.333300376495
C 59694650987257 59694751028433 1193905094 50000.416934811779

result:

ok jury ans = 0.333300376, participant ans = 0.333300376

Test #28:

score: 0
Accepted
time: 5436ms
memory: 9652kb

input:

2000
0 49712
1 49581
2 49460
3 49377
6 49164
12 48860
17 48664
19 48586
22 48484
23 48452
35 48106
39 48003
43 47905
47 47810
56 47614
63 47471
69 47355
80 47158
84 47089
102 46793
126 46438
148 46144
161 45979
176 45797
200 45521
204 45477
217 45336
233 45170
246 45036
252 44976
267 44830
280 44706...

output:

0.323233187879
C 592398306391017 592398378814181 11848083266 50000.372202995888

result:

ok jury ans = 0.323233188, participant ans = 0.323233188

Test #29:

score: 0
Accepted
time: 39ms
memory: 6388kb

input:

400
35034 65376
87242 59352
480 69363
82874 59856
81938 59964
85422 59562
68886 61470
13142 67902
48528 63819
33032 65607
64648 61959
71044 61221
81808 59979
19746 67140
48814 63786
64778 61944
20552 67047
26870 66318
76686 60570
60982 62382
71954 61116
50270 63618
41846 64590
9268 68349
81886 59970...

output:

0.000000000000
L 3 26 1804878

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #30:

score: 0
Accepted
time: 35ms
memory: 6456kb

input:

400
768 30365
6873 42982
8313 45958
25308 81081
7563 44408
18408 66821
15138 60063
468 29745
33978 98999
648 30117
9903 49244
28053 86754
1278 31419
22248 74757
11073 51662
2643 34240
738 30303
3483 35976
978 30799
29778 90319
5403 39944
23568 77485
12948 55537
16818 63535
25773 82042
26328 83189
24...

output:

0.000000000000
L -31 15 431667

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #31:

score: 0
Accepted
time: 35ms
memory: 6496kb

input:

400
57291 43259
59253 44458
25683 23943
3651 10479
21795 21567
88971 62619
50343 39013
51423 39673
24873 23448
23667 22711
36717 30686
16089 18080
60873 45448
50145 38892
39255 32237
66525 48902
11085 15022
46707 36791
48705 38012
70719 51465
34593 29388
66489 48880
51585 39772
80655 57537
52971 406...

output:

0.000000000000
L -11 18 148461

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #32:

score: 0
Accepted
time: 11ms
memory: 6208kb

input:

200
96600 26052
60564 34515
1560 48372
37200 40002
79572 30051
11856 45954
30072 41676
24132 43071
22152 43536
93036 26889
13044 45675
4332 47721
49476 37119
24528 42978
47100 37677
52644 36375
15420 45117
42744 38700
98184 25680
51852 36561
34824 40560
32844 41025
23340 43257
53832 36096
11460 4604...

output:

0.000000000000
L 31 132 6433464

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #33:

score: 0
Accepted
time: 11ms
memory: 6240kb

input:

200
10835 95282
69400 59038
23555 87410
55885 67402
40250 77078
19315 90034
30710 82982
55620 67566
6860 97742
42370 75766
52175 69698
14280 93150
3415 99874
41045 76586
45285 73962
18520 90526
80265 52314
81060 51822
76025 54938
99345 40506
29385 83802
60655 64450
4475 99218
82915 50674
12955 93970...

output:

0.000000000000
L 164 265 27026670

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #34:

score: 0
Accepted
time: 11ms
memory: 6236kb

input:

200
73206 52053
73394 52147
59576 45238
58636 44768
79504 55202
15020 22960
40212 35556
49706 40303
20190 25545
6842 18871
29120 30010
91724 61312
78188 54544
2048 16474
98868 64884
68224 49562
40400 35650
75932 53416
61644 46272
46792 38846
69446 50173
72548 51724
42562 36731
78094 54497
15866 2338...

output:

0.000000000000
L -1 2 30900

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #35:

score: 0
Accepted
time: 0ms
memory: 5928kb

input:

28
53013 50869
48913 47069
51113 47069
49776 46878
48333 47359
53129 50231
46897 49757
51693 52629
50013 53119
46897 50231
51693 47359
49138 52994
48138 52494
49138 46994
47013 50869
47378 48314
51888 52494
50013 46869
52513 51869
47088 51094
52648 51674
50250 46878
52938 48894
51113 52919
48333 526...

output:

0.000000000000
C 50013 49994 1 3125.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #36:

score: 0
Accepted
time: 1ms
memory: 6016kb

input:

25
35007 54374
50007 34374
40632 37499
61760 60295
65007 45624
65587 51184
55507 35374
35382 44499
60303 38246
58407 36824
39711 61752
63182 41599
55507 64624
44507 64624
59382 62499
63182 58399
36832 41599
35382 55499
37507 59374
37507 40624
34427 48814
62507 40624
64632 44499
34427 51184
65632 49999

output:

0.000000000000
C 50007 49999 1 15625.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #37:

score: 0
Accepted
time: 8ms
memory: 6184kb

input:

90
55302 18378
62323 79561
41418 80856
61659 20133
18786 57240
81321 56745
42110 81040
62918 20656
63570 79010
81115 57637
22185 34065
18939 42093
27754 73048
20418 62306
19177 41209
18675 56745
53755 81805
50714 82018
34918 21706
28422 26288
52275 81945
46043 18181
66267 77589
25874 28888
22651 332...

output:

0.000000000000
C 49998 49981 1 32045.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #38:

score: 0
Accepted
time: 4ms
memory: 5948kb

input:

59
44569 51035
52040 44866
44991 47659
44505 49387
47116 45284
49384 55490
46496 54274
53948 53860
54553 46875
54416 46684
45576 53314
44641 51359
47191 45239
45911 53719
44863 52043
53716 54084
47116 54714
49384 44508
47871 55099
55351 48639
45439 53123
46528 54300
44912 47836
54756 47194
54711 528...

output:

0.000000000000
C 49996 49999 1 5525.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #39:

score: 0
Accepted
time: 2ms
memory: 6032kb

input:

44
48340 47355
48920 47065
52520 48115
50257 46874
47385 48310
53145 49990
51895 52490
50020 46865
51700 52625
51895 47490
52655 51670
49783 53106
46904 49753
47520 48115
52520 51865
46895 49990
48145 47490
50895 46990
48340 52625
53136 49753
49145 52990
51120 52915
52655 48310
48920 52915
47095 488...

output:

0.000000000000
C 50020 49990 1 3125.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #40:

score: 0
Accepted
time: 0ms
memory: 5996kb

input:

39
65010 45631
60306 61759
55510 64631
38257 60302
51195 34426
48825 34426
44510 64631
39714 61759
65590 51191
50010 65631
65010 54381
64635 44506
34385 50006
62510 40631
37510 59381
45635 35006
36835 58406
62510 59381
34430 51191
64635 55506
59385 62506
55510 35381
35385 44506
58410 63181
51195 655...

output:

0.000000000000
C 50010 50006 1 15625.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #41:

score: 0
Accepted
time: 65ms
memory: 6388kb

input:

280
51368 17965
47728 18017
46050 18181
67056 22849
65085 21706
20425 62306
77613 66250
31714 23669
77936 65689
38344 79829
74800 70281
17989 48618
81217 42722
75394 69533
67258 76985
19624 60173
18402 44677
79330 62901
20085 61456
58777 80802
71098 25857
49289 82018
57264 18769
55309 18378
81673 54...

output:

0.000000000000
C 50005 49981 1 32045.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #42:

score: 0
Accepted
time: 18ms
memory: 6116kb

input:

158
48683 44641
45288 47126
44595 51137
46535 45705
46688 45586
48683 55371
55494 49394
44478 50006
44870 47962
55523 49771
44648 48646
45702 53474
52343 45001
54423 46691
45128 47406
45583 46691
53471 54307
52343 55011
44503 50531
48967 44579
52047 44873
47403 45131
49478 55506
49391 44515
48456 55...

output:

0.000000000000
C 50003 50006 1 5525.000000000000

result:

ok jury ans = 0.000000000, participant ans = 0.000000000

Test #43:

score: 0
Accepted
time: 2543ms
memory: 9924kb

input:

2780
43634 9527
30398 29204
30402 29237
30411 29218
43626 9478
43706 9456
30436 29192
43649 9550
30382 29179
43709 9527
43644 9465
30385 29239
30448 29182
30419 29238
30426 29245
30377 29168
30413 29171
43639 9549
30430 29151
30379 29219
43654 9509
30368 29234
30378 29158
43698 9503
30452 29203
3043...

output:

56.570768966757
C 14733415117 6884516041 543682 16861.983912891792

result:

ok jury ans = 56.570768967, participant ans = 56.570768967

Test #44:

score: 0
Accepted
time: 3028ms
memory: 10312kb

input:

3000
35274 18457
11468 6660
35219 17956
11137 6573
10999 6016
11248 5905
14689 20868
35639 18485
35245 18515
15136 21029
35759 18417
14823 20861
14863 20861
35962 17808
15097 20761
14788 20691
14913 20639
11652 6405
11102 6301
35436 18067
11362 5883
15626 20857
14655 20210
15325 20600
11152 5906
151...

output:

680.786649035491
C 3583586402192 1521376357996 147719843 13757.365677889189

result:

ok jury ans = 680.786649035, participant ans = 680.786649035

Test #45:

score: 0
Accepted
time: 3033ms
memory: 10368kb

input:

3000
49015 39407
48775 38034
51749 41060
25465 42992
50182 26399
23818 37501
28057 40952
48000 19119
55225 33795
23212 44126
46354 25090
46239 16846
20113 36416
45422 20320
47046 26512
20737 37247
51122 23833
51121 37396
46767 23713
52096 26148
26144 37564
23373 37475
47978 19025
20708 39100
46180 3...

output:

6776.170220759413
C 25367266935387 22545620459651 686169826 15449.832317058004

result:

ok jury ans = 6776.170220759, participant ans = 6776.170220759

Test #46:

score: 0
Accepted
time: 2417ms
memory: 9912kb

input:

2703
21451 22964
31281 37761
38355 54004
21454 22989
21446 22970
38347 54017
38352 54070
21501 23057
21465 22985
38301 54091
21444 23011
38371 54039
31329 37688
31257 37761
31276 37704
31294 37721
38289 54104
21488 23004
19204 31330
19213 31380
21506 23052
38355 54060
19191 31338
21447 23053
19183 3...

output:

3154.401812758787
C 6353697826169 -1410537489224 58891076 101424.938857476925

result:

ok jury ans = 3154.401812759, participant ans = 3154.401812759

Test #47:

score: 0
Accepted
time: 2645ms
memory: 10068kb

input:

2799
28393 41202
39431 13585
31349 6556
12466 24297
12973 24676
28487 41308
39814 14348
13030 24327
39711 14057
28679 41157
39977 14243
31445 6502
29144 41122
12518 24438
31211 6358
12811 24697
39956 14249
40068 14345
40256 14282
39945 13956
13137 24946
30832 6525
30894 6076
13246 24925
30714 5950
3...

output:

1704.573488318283
C 12716667131122 10735805249544 454958077 16401.792610598739

result:

ok jury ans = 1704.573488318, participant ans = 1704.573488318

Test #48:

score: 0
Accepted
time: 2626ms
memory: 10152kb

input:

2800
55731 53447
40124 50201
40428 50643
52854 59719
57067 55144
57183 54026
39429 51201
57370 54659
40024 50146
39446 50086
57377 54664
52666 58913
40554 49812
46784 4508
56067 54286
52798 58973
57065 54442
55746 53579
39954 51325
47274 3622
48433 3844
56740 53575
46797 3168
53209 59765
40612 51268...

output:

3756.838373286165
C 4341750124767 2547202148121 80745662 25646.081925030405

result:

ok jury ans = 3756.838373286, participant ans = 3756.838373286

Test #49:

score: 0
Accepted
time: 2087ms
memory: 9756kb

input:

2497
41752 19228
44525 2912
31252 11042
43448 9139
16052 48892
25294 21318
40433 55158
45875 33198
14671 5656
13591 55454
16900 36294
43434 9116
44473 2873
32465 30941
34701 17016
47338 21250
36066 15180
695 13204
36065 15216
24148 48045
52176 11474
49389 29020
43473 9087
43628 13873
14622 5678
4343...

output:

15773.410624111422
C 28125777914663 19145054169293 788111182 23112.201031838322

result:

ok jury ans = 15773.410624111, participant ans = 15773.410624111

Test #50:

score: 0
Accepted
time: 2120ms
memory: 9952kb

input:

2500
36288 48418
10406 37910
27385 59996
8715 8497
44976 59654
45486 60162
15058 51485
6089 9925
11079 21352
45593 59945
56627 37153
42206 1655
50021 40633
14338 15068
13418 28825
33262 54391
26646 31380
44200 9953
26929 31185
14930 51422
42013 1709
18849 54764
33170 54798
50552 16735
41829 1600
542...

output:

13332.321546550238
C 38019659115021 31234682051251 1108694862 20884.707246743037

result:

ok jury ans = 13332.321546550, participant ans = 13332.321546550

Test #51:

score: 0
Accepted
time: 2146ms
memory: 9772kb

input:

2500
37307 45325
30558 13213
18676 59524
4464 3353
7228 944
31560 24904
32926 28522
20110 57209
17218 5785
32016 25519
60094 35007
5578 58099
45953 50831
4027 56287
47555 51218
26967 31918
16868 54274
7238 2218
34001 26346
56705 56064
33430 26032
14054 29927
22152 2878
34696 58986
46690 52327
31967 ...

output:

18906.258282214614
C 6669485810459 9368540661114 260249774 22150.424347227396

result:

ok jury ans = 18906.258282215, participant ans = 18906.258282215

Test #52:

score: 0
Accepted
time: 9325ms
memory: 10076kb

input:

3000
73303 38669
61787 30119
28049 56995
98407 37479
1203 60906
26539 29928
56594 40485
54107 168
97609 34723
35444 26264
86161 84530
6875 24695
66842 31381
94567 27333
82518 87981
18733 89018
78681 9043
53685 135
4015 69633
99472 57247
18190 11422
25167 55964
94291 73201
42604 72280
96575 31813
867...

output:

24672.382521515668
C 228388041439 229519407329 4603054 25734.810331073521

result:

ok jury ans = 24672.382521516, participant ans = 24672.382521516

Test #53:

score: 0
Accepted
time: 9348ms
memory: 10216kb

input:

2999
33802 51428
36854 98241
99999 50305
83792 86852
29765 34346
70644 4460
76692 7720
74464 29679
30294 4046
97998 35993
37627 98445
44737 99722
33617 97240
67493 3159
17316 12160
56344 52247
36386 98111
79104 90656
14850 85560
56467 64975
78089 91364
96169 69194
28711 72799
32584 96869
1406 61777
...

output:

24299.609707079126
C 12598490279 12616180126 252164 25750.772454261154

result:

ok jury ans = 24299.609707079, participant ans = 24299.609707079

Test #54:

score: 0
Accepted
time: 9329ms
memory: 12488kb

input:

2998
57800 54626
67386 52261
32212 3270
29422 37910
93120 75311
34783 2371
28029 73636
94999 28203
55169 267
92587 23801
61912 98560
14365 85074
12244 82780
37441 47562
98386 62600
25909 93814
28892 72448
57058 99499
40431 36604
32157 54062
62520 1592
93214 75150
44128 68875
99871 53587
21287 90934
...

output:

24853.825928935585
C 268708741215 281195383023 5445934 26908.699402831113

result:

ok jury ans = 24853.825928936, participant ans = 24853.825928936

Test #55:

score: 0
Accepted
time: 6ms
memory: 6080kb

input:

68
46990 49106
47004 49107
48904 52907
52642 51698
52932 51118
51884 52500
53004 49107
48886 47073
53125 50237
48115 47481
47369 51662
49115 46981
48306 52633
46879 49982
46986 49123
47507 51893
48324 52617
49134 47000
50009 53125
49770 53134
52915 51081
51689 52635
48909 52925
52990 49106
52625 483...

output:

19.540945581977
C 9863958668 9863885340 197281 3125.715263886468

result:

ok jury ans = 19.540945582, participant ans = 19.540945582

Test #56:

score: 0
Accepted
time: 0ms
memory: 6036kb

input:

23
38248 60286
44515 64609
35385 55488
65001 45615
48825 34408
35010 45613
35005 45617
34421 48805
64989 54384
65585 51177
48816 65570
41605 63167
62515 40609
55510 64613
37505 59367
60285 61762
38236 60305
48825 65568
35001 45615
49989 65634
40635 62488
38252 39696
58405 36817

output:

15.494244009359
C 40125332414537 40120154937573 802546478 15627.732008207524

result:

ok jury ans = 15.494244009, participant ans = 15.494244009

Test #57:

score: 0
Accepted
time: 1507ms
memory: 8220kb

input:

1605
81204 42754
74123 71104
22988 67266
47618 81966
26813 27911
27900 73221
75200 69811
72092 73218
32746 77015
17975 50699
57880 81072
75654 69238
22988 32760
24364 30789
20667 62933
61493 79931
60191 80392
31727 23699
81824 53773
67051 77148
17955 50729
20970 63583
68290 76323
45117 81679
71000 7...

output:

18.190391151600
C 57667843169867 57662452599683 1153263986 32045.000000401644

result:

ok jury ans = 18.190391152, participant ans = 18.190391152

Test #58:

score: 0
Accepted
time: 95ms
memory: 6464kb

input:

357
50527 44498
51558 55292
54269 46511
52046 55131
52157 44906
51126 44574
53954 46137
45591 53303
50623 44497
44587 51113
44503 50602
55349 48630
54754 52795
47950 44857
48634 55366
51354 55345
46042 53851
54877 47398
48691 55353
45280 47102
55095 52107
48464 55292
46511 54263
46526 54291
50519 55...

output:

15.079240889958
C 497396991649 497377118934 9948211 5525.005255634646

result:

ok jury ans = 15.079240890, participant ans = 15.079240890

Test #59:

score: 0
Accepted
time: 3ms
memory: 5968kb

input:

41
53119 50227
49765 53098
48131 47480
46878 50017
53126 50017
49137 47013
50249 53129
49779 46891
47503 51892
46887 50254
52941 48907
52503 48115
52637 48302
48332 52648
52503 51892
53131 49980
46896 50250
53127 49982
49128 52990
53118 50219
51680 52643
53003 50865
50881 52980
48141 52507
46885 502...

output:

16.095483639100
C 77509815782 77502834364 1550079 3123.215965695545

result:

ok jury ans = 16.095483639, participant ans = 16.095483639

Test #60:

score: 0
Accepted
time: 9ms
memory: 6168kb

input:

88
55496 64617
40610 37493
59381 37504
37496 40617
35360 44493
59370 37505
48800 65573
36810 58393
51188 34401
48799 65578
36819 58412
50006 34379
34994 45637
45609 64998
44494 64637
65574 48827
65565 51178
65609 49998
40610 62493
61749 60303
63160 58393
35006 54379
63178 58381
34996 45617
60280 617...

output:

16.091903867458
C 250513529505 250499839480 5010307 15625.021793220709

result:

ok jury ans = 16.091903867, participant ans = 16.091903867

Test #61:

score: 0
Accepted
time: 1173ms
memory: 7968kb

input:

1404
81964 47735
32949 77144
82007 51346
30448 24609
77139 32948
80821 41240
30764 24360
53955 81812
65080 78273
67256 23010
72244 26931
22177 65911
65916 77825
75200 69807
52391 18041
39811 80395
37070 20670
78278 65094
77132 32947
74785 29695
38339 20150
75200 69793
31712 76326
37080 20673
30224 7...

output:

17.574499611950
C 105979996140607 105967510967974 2119501206 32045.000000969609

result:

ok jury ans = 17.574499612, participant ans = 17.574499612

Test #62:

score: 0
Accepted
time: 133ms
memory: 6628kb

input:

441
51021 44577
55395 48885
55540 49745
46124 53956
53939 53877
52790 54764
52792 54776
53129 54548
46513 54291
53730 54089
54745 47199
51116 55412
54562 46867
54733 52881
53874 46064
52157 44931
46889 54573
49408 44489
46126 53968
53485 54279
51370 55359
53520 54255
54575 53125
46679 45595
52890 45...

output:

24.405628205702
C 146886293086 146869776393 2937442 5525.066261662138

result:

ok jury ans = 24.405628206, participant ans = 24.405628206

Test #63:

score: 0
Accepted
time: 170ms
memory: 6508kb

input:

379
56619 21936
4278 1797
47495 21656
59215 2714
65257 9809
59962 20948
20013 20448
6638 580
62473 4831
65009 15093
774 6139
51 11015
52347 1850
63354 5809
48616 1686
23198 20588
64595 7842
59711 21069
790 6101
55987 2010
3803 17847
65429 10813
9436 14
973 14303
65181 9494
6309 19293
24472 20644
654...

output:

9999.981373545386
L 4 -91 -869839

result:

ok jury ans = 9999.981373545, participant ans = 9999.981373545

Test #64:

score: 0
Accepted
time: 136ms
memory: 6548kb

input:

400
502 1867
782 1976
757 1970
2121 2244
876 7
5828 945
745 1967
9239 3173
9377 2980
13 834
3683 516
9495 2402
1598 99
4461 2712
7671 3354
9490 2359
8061 3432
123 1482
6816 3183
7551 3330
289 295
9479 2296
8016 3423
319 1733
2093 198
585 89
3338 447
390 206
3938 567
8678 1515
5751 2970
8912 3411
114...

output:

1000.388405339877
L -1 5 3998

result:

ok jury ans = 1000.388405340, participant ans = 1000.388405340

Test #65:

score: 0
Accepted
time: 142ms
memory: 6592kb

input:

320
5261 14992
67720 6648
23 9511
67378 7413
3334 14713
9 9685
1124 13158
65775 839
42863 11753
1337 6594
67688 6737
3095 14622
66015 1010
67821 6323
66269 1215
64660 282
67570 7027
14849 14168
2206 5851
612 12397
63725 51
3024 5405
4000 14898
3064 5388
38165 12158
63171 1
67576 2984
1698 13754
3765...

output:

5000.178792790331
L 5 58 604903

result:

ok jury ans = 5000.178792790, participant ans = 5000.178792790

Test #66:

score: 0
Accepted
time: 1236ms
memory: 8972kb

input:

2028
7637 2508
20456 6990
9329 3072
24521 8136
29381 9756
13253 4380
25061 8316
35180 11898
4757 1548
29345 9744
7241 2376
19124 6546
2996 1170
15308 5274
5372 1962
20129 6672
34928 11814
7061 2316
8825 2904
11744 4086
28985 9624
34820 11778
26645 8844
13541 4476
7928 2814
35576 12030
29273 9720
634...

output:

99.137404646279
L 2 -6 -401

result:

ok jury ans = 99.137404646, participant ans = 99.137404646

Test #67:

score: 0
Accepted
time: 1182ms
memory: 9040kb

input:

1998
1348 31328
2450 31791
39508 5888
35762 9583
18292 20032
37876 6976
6388 27968
31204 11424
48889 807
25588 15168
26500 14560
4706 30287
4708 29088
45604 1824
15794 22895
37346 8527
18484 19904
7252 27392
28466 14447
19972 18912
29330 13871
43636 3136
37828 7008
42004 4224
38404 6624
38546 7727
9...

output:

498.259451259312
L 4 6 196953

result:

ok jury ans = 498.259451259, participant ans = 498.259451259