QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#88637#5570. Epidemic Escape2745518585AC ✓970ms144308kbC++146.1kb2023-03-16 20:26:142023-03-16 20:26:16

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-16 20:26:16]
  • 评测
  • 测评结果:AC
  • 用时:970ms
  • 内存:144308kb
  • [2023-03-16 20:26:14]
  • 提交

answer

#include<cstdio>
#include<algorithm>
#include<cmath>
#include<vector>
using namespace std;
typedef long double ld;
inline char gc()
{
    static char buf[100000],*p1=buf,*p2=buf;
    return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++;
}
template<typename T>
inline void read(T &x)
{
    T u=1,t=0;char c=gc();
    while(c<'0'||c>'9') {if(c=='-') u=-1; c=gc();}
    while(c>='0'&&c<='9') t*=10,t+=c-'0',c=gc();
    x=u*t;return;
}
const double eps=1e-12,pi=acos(-1.0);
const int N=4000001;
int dcmp(double x)
{
    if(fabs(x)<eps) return 0;
    if(x>0) return 1;
    return -1;
}
struct point
{
    double x,y;
    point(){}
    point(double x,double y):x(x),y(y){}
    friend point operator+(point a,point b)
    {
        return point(a.x+b.x,a.y+b.y);
    }
    friend point operator-(point a,point b)
    {
        return point(a.x-b.x,a.y-b.y);
    }
    friend point operator*(point a,double b)
    {
        return point(a.x*b,a.y*b);
    }
    friend point operator*(double b,point a)
    {
        return point(a.x*b,a.y*b);
    }
    friend point operator/(point a,double b)
    {
        return point(a.x/b,a.y/b);
    }
    friend double dot(point a,point b)
    {
        return a.x*b.x+a.y*b.y;
    }
    friend double cross(point a,point b)
    {
        return a.x*b.y-a.y*b.x;
    }
    friend double length(point a)
    {
        return sqrt(a.x*a.x+a.y*a.y);
    }
};
struct line
{
    point a,b;
    int t;
    line(){}
    line(point a,point b):a(a),b(b){}
    line(point a,point b,int t):a(a),b(b),t(t){}
};
double angle(point a,point b)
{
    return acos(dot(a,b)/length(a)/length(b));
}
double disPP(point a,point b)
{
    return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
bool onleftPL(point a,line b)
{
    return dcmp(cross(a-b.a,b.b))<0;
}
point intLL(line a,line b)
{
    if(dcmp(cross(a.b,b.b))==0) return point(1e30,1e30);
    return a.a+(cross(b.b,a.a-b.a)/cross(a.b,b.b))*a.b;
}
point turnV(point a,double b)
{
    return point(a.x*cos(b)-a.y*sin(b),a.y*cos(b)+a.x*sin(b));
}
struct halfplane
{
    int m,n;
    line a[N],b[N];
    double s;
    static bool cmp(line a,line b)
    {
        return atan2(a.b.y,a.b.x)<atan2(b.b.y,b.b.x);
    }
    void solve()
    {
        sort(b+1,b+m+1,cmp);
        int T=1,R=0;
        a[++R]=b[1];
        for(int i=2;i<=m;++i)
        {
            while(T<=R-1&&!onleftPL(intLL(a[R-1],a[R]),b[i])) --R;
            while(T<=R-1&&!onleftPL(intLL(a[T],a[T+1]),b[i])) ++T;
            a[++R]=b[i];
            if(T<=R-1&&dcmp(cross(a[R].b,a[R-1].b))==0)
            {
                if(dcmp(cross(a[R-1].a-a[R].a,a[R].b))>=0&&dcmp(dot(a[R-1].b,a[R].b))<0)
                {
                    n=0;
                    return;
                }
                if(dcmp(dot(a[R-1].b,a[R].b))>0)
                {
                    if(dcmp(cross(a[R-1].a-a[R].a,a[R].b))>0) swap(a[R],a[R-1]);
                    --R;
                }
            }
        }
        while(T<=R-1&&!onleftPL(intLL(a[R-1],a[R]),a[T])) --R;
        n=R-T+1;
        if(n<=2) n=0;
        for(int i=1;i<=n;++i)
        {
            a[i]=a[T+i-1];
        }
        a[n+1]=a[1];
        a[n+2]=a[2];
    }
    double area()
    {
        double s=0;
        a[n+1]=a[1];
        a[n+2]=a[2];
        for(int i=1;i<=n;++i)
        {
            s+=cross(intLL(a[i],a[i+1]),intLL(a[i+1],a[i+2]))/2;
        }
        return s;
    }
}S;
int n,m,t;
double e[N],f[N];
bool h[N];
line a[N],c[N];
struct str
{
    point x;
    int k,t;
}b[N];
vector<int> d[N];
bool cmp(str a,str b)
{
    return atan2(a.x.y,a.x.x)<atan2(b.x.y,b.x.x);
}
void solve()
{
    S.m=0;
    for(int i=1;i<=n;++i)
    {
        if(h[i]==false) S.b[++S.m]=a[i];
    }
    S.b[++S.m]=line(point(1e18,1e18),point(-1,0),0);
    S.b[++S.m]=line(point(-1e18,1e18),point(0,-1),0);
    S.b[++S.m]=line(point(-1e18,-1e18),point(1,0),0);
    S.b[++S.m]=line(point(1e18,-1e18),point(0,1),0);
    S.solve();
    int n=S.n;
    for(int i=1;i<=n;++i)
    {
        c[i]=c[n+i]=c[n*2+i]=c[n*3+i]=S.a[i];
        h[c[i].t]=true;
    }
    auto dis=[&](int x,int i)
    {
        if(dcmp(dot(b[i].x,intLL(c[x],line(point(0,0),b[i].x))))<0) return (double)1e30;
        return length(intLL(c[x],line(point(0,0),b[i].x)));
    };
    int x=n+1;
    for(int i=1;i<=m;++i)
    {
        while(x<=n*3&&dis(x,i)>1e25||dis(x+1,i)<dis(x,i)) ++x;
        x=(x-1)%n+n+1;
        d[i].push_back(c[x-4].t);
        d[i].push_back(c[x-3].t);
        d[i].push_back(c[x-2].t);
        d[i].push_back(c[x-1].t);
        d[i].push_back(c[x].t);
        d[i].push_back(c[x+1].t);
        d[i].push_back(c[x+2].t);
        d[i].push_back(c[x+3].t);
        d[i].push_back(c[x+4].t);
    }
}
int main()
{
    read(n);
    for(int i=1;i<=n;++i)
    {
        point x;
        int z;
        read(z);
        x.x=z;
        read(z);
        x.y=z;
        if(dcmp(x.x)==0&&dcmp(x.y)==0)
        {
            ++t,--n,--i;
            continue;
        }
        a[i]=line(x/2,turnV(x,pi/2),i);
        if(dcmp(cross(a[i].b,point(0,0)-a[i].a))<0) a[i].b=point(0,0)-a[i].b;
    }
    read(m);
    for(int i=1;i<=m;++i)
    {
        int z;
        read(z);
        b[i].x.x=z;
        read(z);
        b[i].x.y=z;
        read(b[i].k);
        b[i].t=i;
    }
    sort(b+1,b+m+1,cmp);
    for(int i=1;i<=5;++i) solve();
    for(int i=1;i<=m;++i)
    {
        int z=0;
        sort(d[i].begin(),d[i].end());
        for(int j=0;j<d[i].size();++j)
        {
            if((j>0&&d[i][j]==d[i][j-1])||d[i][j]==0) continue;
            point p=intLL(line(point(0,0),b[i].x),a[d[i][j]]);
            if(dcmp(dot(b[i].x,p))>0) e[++z]=disPP(point(0,0),p);
            else e[++z]=1e30;
        }
        sort(e+1,e+z+1);
        if(t>=b[i].k) f[b[i].t]=0;
        else if(e[b[i].k-t]>1e17) f[b[i].t]=-1;
        else f[b[i].t]=e[b[i].k-t];
    }
    for(int i=1;i<=m;++i)
    {
        if(f[i]<0) printf("-1\n");
        else printf("%.10lf\n",f[i]);
    }
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 22ms
memory: 97084kb

input:

5
5 -3
5 4
-6 2
-5 0
4 1
2
-3 -10 1
6 -9 1

output:

8.7002554241
3.2260195623

result:

ok 2 numbers

Test #2:

score: 0
Accepted
time: 20ms
memory: 97124kb

input:

8
4 -1
4 -8
0 9
4 -7
-5 -2
5 -5
7 5
-9 2
10
4 -8 1
7 -7 5
-10 8 2
-9 9 2
4 -7 5
-1 -10 2
6 -3 2
2 -9 3
-10 -10 1
5 9 1

output:

3.1677629681
26.1629509039
5.4614883202
6.3639610307
-1
5.2894082216
3.7267799625
4.6097722286
2.9294423792
4.7617289402

result:

ok 10 numbers

Test #3:

score: 0
Accepted
time: 23ms
memory: 97080kb

input:

5
-4 -7
5 0
2 4
-7 -7
4 4
20
0 -5 2
-4 -7 2
-7 7 3
4 -4 3
-7 4 3
4 -4 1
2 4 1
6 -7 2
4 -4 2
4 4 3
5 4 1
-1 9 2
8 9 3
4 -4 2
6 3 3
-10 -3 2
-7 7 1
9 -4 1
-4 -7 3
-2 0 2

output:

7.0000000000
5.1305276580
-1
-1
-1
3.5355339059
2.2360679775
11.9854077945
15.3206469257
3.5355339059
2.4627400913
4.5276925691
3.7629983059
15.3206469257
2.9814239700
5.6217035048
7.0710678119
2.7357938338
-1
8.1250000000

result:

ok 20 numbers

Test #4:

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

input:

100
63 -48
20 -62
-81 -31
-17 -93
2 -74
72 25
-71 37
-71 17
56 67
-47 65
-89 14
62 30
-71 -33
14 -53
-57 -52
30 80
-14 -69
-45 -19
-54 -71
58 -20
-57 12
5 -56
-76 -2
26 61
24 60
10 -97
-63 38
17 81
-43 -38
44 35
-86 37
62 72
77 11
41 29
14 81
77 55
-54 -33
-43 -51
76 14
55 47
43 24
69 -13
16 75
11 9...

output:

26.7586788688
29.5714059979
24.6221445045
27.7717456547
26.6783667129
24.4237024605
28.8933481964
29.7761695578
31.9403629705
27.2149016024
31.7280950457
27.0711605517
25.2991100306
26.8710651521
28.9958394534
28.3563142462
29.9872588920
25.6496237196
25.1496681332
28.3011569706
28.6117519545
26.690...

result:

ok 100 numbers

Test #5:

score: 0
Accepted
time: 67ms
memory: 101176kb

input:

10000
-3 3
-6 2
-4 1
-2 -5
5 -6
-7 -2
0 7
1 -4
8 0
-4 4
-6 -2
5 0
2 9
-4 -8
0 -8
7 4
-7 2
3 3
4 1
-1 7
-4 -2
6 0
3 -5
-7 2
0 -9
7 0
7 3
-6 0
1 7
6 2
2 -9
1 8
3 -3
2 -9
4 2
4 -5
6 0
-3 6
7 3
0 8
0 -4
7 0
-5 8
5 -5
-5 -1
0 9
-4 -3
-9 -1
7 -2
-7 -2
4 0
-6 6
-3 4
6 7
2 5
-8 -5
0 5
4 0
0 -4
0 -6
-5 3
-5 ...

output:

2.1549170046
2.1672659357
2.0676430855
2.1118419787
2.1118419787
2.1118419787
2.1249872786
2.1213203436
2.0275875101
2.0928822829
2.1415372144
2.0615528128
2.1549170046
2.0000000000
2.1213203436
2.1672659357
2.0676430855
2.0203050891
2.0676430855
2.1415372144
2.1213203436
2.0000000000
2.1213203436
2...

result:

ok 10000 numbers

Test #6:

score: 0
Accepted
time: 94ms
memory: 101052kb

input:

10000
-90174 318421
-37261 138897
-260388 -302590
-906833 35071
317743 -283220
390311 -85301
880987 325969
-315218 -116767
103089 -8223
-134988 -973121
-444593 229407
-552060 549321
265624 -337609
-264546 322379
28687 110143
467764 303005
-335748 32188
213125 274156
240105 751
-81255 -129323
148563 ...

output:

218.3023759373
481.6627119891
792.1850756018
579.9542618493
807.7094462678
242.5921754846
882.2675147667
530.7807802597
664.1821759610
796.3607397675
662.7071678987
639.0726192787
125.8211827153
745.7291752667
732.4967218100
676.5327801482
808.9964118683
427.9627407901
1298.3736892031
616.3789303001...

result:

ok 10000 numbers

Test #7:

score: 0
Accepted
time: 855ms
memory: 135572kb

input:

100000
-14593321 17388753
13488647 1223793
33907737 -8731155
-14502324 73522129
-13933178 -13752140
9462275 13349398
14636622 31405249
5160247 -69775840
-49415260 -40092130
-9926862 -25806124
14982829 -8025116
-5492901 4568113
48872077 86636033
19374632 32538501
-16657133 -11624530
-15398598 -966935...

output:

1331.4977763324
1193.9602287451
1171.2427261871
1856.2890362990
2681.8829458540
1170.8707408363
1128.3614715722
1855.8783379892
3518.3241479702
1541.7860082155
1515.0151223165
1124.4065660466
2146.7167113138
1179.4306789471
1164.1588782715
1251.5110829082
2737.3506509053
1117.3515869945
2213.1263918...

result:

ok 100000 numbers

Test #8:

score: 0
Accepted
time: 742ms
memory: 140744kb

input:

100000
-60674143 79489917
99210432 12541486
-99948887 -3196593
57015830 -82153478
10407645 99456921
-90320128 42921703
93983821 34161956
96773928 -25195355
69603194 71801068
27259746 -96212811
96031961 27890165
76618755 -64261689
-99095784 13417302
-95521354 -29591717
-34815155 -93743823
-93393132 -...

output:

49999995.0818661898
49999995.9004091099
49999995.3149216920
49999995.3054673970
49999994.5577050075
49999996.4862814248
49999994.6940732449
49999995.1368903965
49999995.7255437896
49999995.4937630966
49999997.2567733154
49999994.7944017574
49999994.9287077561
49999995.7829386741
49999994.9440986514
...

result:

ok 100000 numbers

Test #9:

score: 0
Accepted
time: 709ms
memory: 140948kb

input:

100000
28442101 95869943
64560849 76366848
-85662377 51594149
95580169 -29401185
-40181553 -91572058
67627360 -73665047
82527643 56472888
29700208 95487675
87983116 -47528622
62992785 77665358
-2222699 99975284
-64132427 76726992
-76047272 64936977
87016456 49276108
95274227 30377974
-62944509 -7770...

output:

49999994.8309710398
49999995.5183788612
49999994.9251786992
49999995.5234946907
49999994.8275525048
49999994.6394857913
49999994.8678172380
49999996.4713342562
49999995.0233866870
49999995.4033335298
49999994.9916431084
49999994.9030463919
49999995.6710114405
49999995.2659545392
49999995.3312548622
...

result:

ok 100000 numbers

Test #10:

score: 0
Accepted
time: 761ms
memory: 140832kb

input:

100000
66926611 74302272
-39804607 -91736532
-31850108 94792239
-94396583 -33004302
-57766222 81627580
-80246004 59670576
74979879 -66166588
37426246 -92732280
-40775354 -91309200
99674197 8065507
94244794 -33435279
-24613128 -96923641
28694420 -95794726
97637671 -21607478
-49066338 -87134919
612455...

output:

49999995.7715908289
49999995.4357772246
49999996.4043741897
49999994.8179789335
49999997.2285060361
49999995.8582851365
49999995.0825320482
49999994.5402301550
49999994.6179780886
49999995.4909426197
49999995.5851056725
49999994.7581311390
49999997.0426210091
49999994.9688381106
49999995.9953611568
...

result:

ok 100000 numbers

Test #11:

score: 0
Accepted
time: 725ms
memory: 140868kb

input:

100000
31516589 94903656
70239724 71178504
-57719682 81660501
73612201 67684871
82391354 -56671542
72801723 -68555878
26893692 -96315770
-83483265 55050367
87478845 -48450493
-85026739 52635096
-26511823 96421583
95776532 -28755096
88242174 -47045913
77725402 -62918677
-14344932 98965762
-25054341 -...

output:

49999995.1416609809
49999995.1742068678
49999995.8579723611
49999997.1304232255
49999995.6565237641
49999995.2441420853
49999995.3516391590
49999994.6824236438
49999995.6391572133
49999995.6166995987
49999995.0758054852
49999997.0231123418
49999994.7090391815
49999996.2098523229
49999995.4048886001
...

result:

ok 100000 numbers

Test #12:

score: 0
Accepted
time: 745ms
memory: 140792kb

input:

100000
-77953946 -62635297
-97003745 24295529
-95559516 -29468254
-37774475 -92590972
-78235761 62282941
24449261 96965108
-32126090 -94699061
-90361637 -42834246
-15234257 -98832767
-67393723 -73878858
-77089954 63695658
-87433336 -48532575
45142341 -89230981
80543145 -59268883
99006350 -14062036
-...

output:

49999994.8800610006
49999995.6036443487
49999995.4473164305
49999994.8234286085
49999994.7814365849
49999994.9757974595
49999994.9918332547
49999996.4288837314
49999995.4920812249
49999996.1784076616
49999995.1575361192
49999994.5227592662
49999995.0962231755
49999994.7197688147
49999995.0631763414
...

result:

ok 100000 numbers

Test #13:

score: 0
Accepted
time: 904ms
memory: 135820kb

input:

100000
-14994761 -98790003
-52791662 84821895
87513045 48313812
19785427 97922747
98912337 -14130131
-4520530 -99837938
93690283 34834919
99547007 8570663
86380533 -50241768
-46722739 88350371
69496929 -71791216
-85910197 -51161960
5199588 99844597
11410781 -99298438
-99814172 5122831
99748209 57815...

output:

49950309.3056237921
49950587.9321183786
49950271.2551974803
49950284.2250954434
49950441.6709376127
49950141.2846822217
49950288.3766497225
49950469.2183907703
49950744.1464028656
49950688.2312025577
49950339.5676553622
49950216.2988869324
49950092.5740196481
49950416.5313250050
49950177.6632704213
...

result:

ok 100000 numbers

Test #14:

score: 0
Accepted
time: 736ms
memory: 144308kb

input:

100000
87107311 49115334
-98093001 -19436093
86159431 -50759733
-90576186 -42378693
99725385 7405849
-93030414 -36678893
7164898 99742981
88908273 -45774642
-87848897 47776244
98650729 -16371688
-13992770 99016167
-36675953 93031566
-28482368 95857989
-38312130 -92369793
86372731 50395931
-50997291 ...

output:

49999995.7797225490
49999994.6245876029
49999998.3509637862
49999995.5115784183
49999995.0933498666
49999994.8836178184
49999997.9886450395
49999996.2295945808
49999998.0441679731
49999995.8618392870
49999996.7392814085
49999996.2061849311
49999996.8127210513
49999997.1296632290
49999998.4672184139
...

result:

ok 100000 numbers

Test #15:

score: 0
Accepted
time: 724ms
memory: 140956kb

input:

100000
87353211 -48676647
78574311 -61855286
1089525 99994063
-99999914 -125343
-79940915 -60078697
97608574 -21738565
-99570798 9254977
-57082835 -82106930
77989099 62591525
-36640991 -93045345
-82795 -99999957
99857762 5331654
91364668 40650900
-89488349 -44629962
24733984 96892872
87543386 483337...

output:

49999998.4114884883
49999997.9731765464
49999997.2725407258
49999998.4609082043
49999994.7726248577
49999996.2591437399
49999997.4391601980
49999997.4595152587
49999994.9463549927
49999996.9207552820
49999997.9735086113
49999996.5709999055
49999996.1017815396
49999997.6848153174
49999995.7377748191
...

result:

ok 100000 numbers

Test #16:

score: 0
Accepted
time: 902ms
memory: 135788kb

input:

100000
-95807142 28504127
58593535 -80943524
-99766431 5986168
93220087 -35989826
3645498 -99841657
69856363 -71476864
6430623 99747801
99074166 -13444307
25226151 96750874
-99820804 -4584947
80958147 58644185
99854141 3972407
93127038 36267563
83656508 -54710699
73943321 -67286687
22540877 -9736065...

output:

49951675.8764737770
49951660.7759727389
49951740.4114056006
49951465.4638304114
49950200.2577471286
49950954.5130789801
49951162.3204078525
49950823.9987230077
49951011.4364624321
49951169.7614416853
49950251.9870868698
49950960.8967498541
49951548.7213694677
49950976.9117757231
49950703.5493174717
...

result:

ok 100000 numbers

Test #17:

score: 0
Accepted
time: 917ms
memory: 135820kb

input:

100000
-18866705 98167110
96374803 -26445175
-90527905 42406852
93525949 35171769
-99675297 7020406
-99946706 -2220134
31631621 -94776631
-46384811 88576816
-2476324 99950315
69306249 -72003171
-30910251 -95067123
85457008 51882654
82372940 -56613508
6032490 99757677
99488049 -9473775
97295326 22667...

output:

49950435.4342463240
49950523.6429177821
49951727.0368673876
49950791.7197091654
49952062.1846697628
49951220.3037158474
49950723.9434544295
49951030.2751690298
49951362.7755594105
49951028.0508876219
49951744.1141123027
49951224.7437644750
49952317.4008079916
49951224.1601771638
49951151.4789893627
...

result:

ok 100000 numbers

Test #18:

score: 0
Accepted
time: 876ms
memory: 135664kb

input:

100000
-94544376 30244008
-5524553 -99134196
64736465 74935295
-10781223 -98537615
-27540414 96110283
94534101 -30554453
-49000527 -87040163
-70553197 70503800
90093758 -41264733
51497088 84792240
-50688507 -85177162
95747827 28411115
-85773541 -50275968
-34190721 93830767
-42611828 90282250
-315970...

output:

49503286.6071341932
49503940.1660004184
49500902.0574530736
49502328.8001762554
49504050.8899425641
49503864.7113224342
49502762.9502231777
49505338.4543824047
49503140.1828940362
49508220.5136476383
49506314.7348970696
49508005.3967640698
49501854.4901581481
49506908.0257155448
49503251.9579029158
...

result:

ok 100000 numbers

Test #19:

score: 0
Accepted
time: 929ms
memory: 137740kb

input:

100000
-72724429 68353169
-23398454 96972722
98697156 15295066
-50053634 86257978
95660227 -25689933
-98427638 12257835
-95720479 25986032
99360720 -9958797
-34453585 -93167496
97657115 21470158
-61854668 77939046
-78666489 60608092
99656422 -4271277
37176490 92108858
92266107 -36908241
84966021 -52...

output:

49505232.2522462085
49505902.9530284181
49506391.3517989367
49501384.8619998023
49501974.5375367850
49503956.2921274826
49506260.8484404981
49507848.9578431323
49507844.1977249831
49507646.9159879163
49505334.2111403197
49504283.4305713326
49503897.6784182638
49506239.9631956965
49506420.6701118946
...

result:

ok 100000 numbers

Test #20:

score: 0
Accepted
time: 890ms
memory: 135692kb

input:

100000
-98189095 15784434
89982407 42479712
-98538151 10378719
48446566 -87123427
90936804 -40512021
67828507 72315413
-19102654 97627943
-40632682 -90422395
-71928032 68028353
59463681 -80194272
-61979681 77927882
-89859188 -41650204
-40753972 -90873220
-31802337 -94326140
29901118 94629634
8981744...

output:

49501432.7022043765
49504111.9000156373
49506914.0037283599
49504020.3841625601
49500748.1808290109
49509533.2816175595
49504423.6514928415
49503519.1264973208
49507687.1662349254
49501887.8451572880
49501129.4738505483
49506066.7849481776
49503294.6517206505
49500496.9255725443
49503260.6522218660
...

result:

ok 100000 numbers

Test #21:

score: 0
Accepted
time: 921ms
memory: 135744kb

input:

100000
74210313 -66772568
-82118759 55744795
-40558611 -90552265
-80801514 58093666
-87555090 46582002
-96330979 24086781
39402894 91628283
56594773 -82141487
39313600 91784698
89239441 43417687
-95774367 28264902
32961837 93669012
-85873036 -51077556
-27532569 -96083438
82705246 -55505999
-22508180...

output:

49506572.9114001319
49507188.3698279336
49504015.5868492275
49502226.2551336810
49511712.3791654557
49508088.3725657463
49508038.4721606672
49511153.9459437132
49503445.7644251287
49505408.2422356382
49501120.2191417143
49504635.7946901396
49501929.8603164181
49500674.3593257293
49508683.1372701526
...

result:

ok 100000 numbers

Test #22:

score: 0
Accepted
time: 919ms
memory: 135636kb

input:

100000
-71207198 55424979
-79825607 -56036270
-83654833 37345395
-91097555 -17973035
-79663519 53088655
40943861 -91076400
84688501 31061641
-96431516 -1566452
-89205053 17120308
66023621 -67658770
-85253305 44553904
-95493219 -8941382
-79301859 45970085
-27319544 -90541866
-90379686 -10409784
-8376...

output:

45036750.1372239143
45027842.8818135709
45013570.7649708614
45012430.8467586786
45008268.5080020577
45035953.6251027063
45011940.3266864419
45033497.6378687248
45035993.0317809358
45018438.5524730831
45010458.6109155566
45008354.7259051874
45032420.0671344250
45019612.3304007575
45010086.5286969915
...

result:

ok 100000 numbers

Test #23:

score: 0
Accepted
time: 921ms
memory: 135736kb

input:

100000
38905528 81237636
-87968422 -27436984
9608199 91019553
78087433 -61515160
-93465529 27267558
13655649 -92011700
-4844144 -90101777
-76856347 -55299593
7037669 95820739
73512631 -55423174
66171160 -69809341
-38015506 -91878674
92573512 18160315
-89558982 43574979
41250811 89067345
90892069 312...

output:

45035187.3884272948
45009163.6065222025
45033436.3931769803
45019451.0239726603
45022200.7504397109
45014848.4584343731
45024066.2168218568
45004916.9090575650
45009051.6157130525
45011633.8119250014
45006265.9086879492
45025389.7773992494
45018143.2059153020
45004427.2401311919
45017652.0731754377
...

result:

ok 100000 numbers

Test #24:

score: 0
Accepted
time: 897ms
memory: 135640kb

input:

100000
73858871 59646768
74771059 50581404
69886208 66567485
-98824001 3209940
71195346 65729342
-31147238 89170502
-93247841 -18314860
25371727 94636356
96922565 192144
11319923 -96984253
-90534277 -37798172
92579912 22026541
-85805605 34201581
-34434706 84998535
28174675 -86301411
18885420 9491316...

output:

45004913.3664171025
45049419.1160457656
45013923.5129688159
45018139.6488505527
45036905.8127368614
45014915.9261846617
45021998.4164936990
45005546.4190510362
45013393.3187403157
45031474.2617547214
45023802.2902519703
45024466.4821735844
45028156.9922565147
45028587.9272051007
45021843.4432482421
...

result:

ok 100000 numbers

Test #25:

score: 0
Accepted
time: 909ms
memory: 135604kb

input:

100000
6192364 97854354
-26396072 -87670473
-15829494 95984810
29977494 -87073709
85322761 44933323
-10724758 96451337
25075242 -88807937
88653656 -28596396
-7234959 97007100
-98015205 5615321
-46753278 -86423176
-84626507 -46187913
58215823 -70504834
88062585 26935126
79507695 56070039
-81885399 -4...

output:

45007894.8356611431
45013616.1135625243
45048543.6061462089
45027729.0330647901
45013317.4985193610
45020005.9202678651
45013214.4532615170
45017977.1928253174
45015065.2213866711
45019880.1661492959
45029719.3585011661
45018055.1420109645
45027958.6147321090
45032293.0370835587
45023771.4683760852
...

result:

ok 100000 numbers

Test #26:

score: 0
Accepted
time: 905ms
memory: 135640kb

input:

100000
-56925997 -77019489
93686323 23015852
-96967479 14925388
-69298767 71247873
-89975226 -39629378
-81202105 -57862266
-30611438 -91102049
69779237 60415278
85454036 38912399
-23494246 -94997385
11333990 -97239874
26776076 95709458
7400584 -95188065
94132228 33609835
31334391 -91724795
15440367 ...

output:

45031230.0083619356
45031012.6837546229
45051159.9267532900
45057523.9439005926
45021248.9383935183
45034531.5222572908
45010861.9044016749
45036940.6662583575
45011332.8873037174
45014214.3833544180
45031679.2282823995
45012785.3672063202
45001127.1071561724
45030055.9623051211
45008553.3961223960
...

result:

ok 100000 numbers

Test #27:

score: 0
Accepted
time: 735ms
memory: 140972kb

input:

100000
86473583 -50222687
87983523 47527871
50172327 -86502810
-50052528 -86572186
-81465580 57994464
99757942 6953600
-89115446 45369999
-98572877 16834073
86724085 -49788872
-72244940 -69142374
95384011 -30031466
31730815 -94832244
-96383253 26650854
70233115 71185027
38343247 92356888
-76013019 6...

output:

49999997.4571804330
49999998.4627793953
49999997.1012831181
49999996.8661267459
49999998.6305340081
49999998.5050832629
49999996.2101661190
49999998.6642196402
49999997.4219625220
49999996.6097953618
49999997.2465502769
49999997.5784507096
49999997.7963023633
49999996.7176688686
49999998.5363129005
...

result:

ok 100000 numbers

Test #28:

score: 0
Accepted
time: 748ms
memory: 140884kb

input:

100000
96098382 27660424
96993975 -24334494
98858570 15065921
-70174372 71242940
59401282 80445550
-34968800 -93686616
-45576276 89010123
-93157321 36355368
-98590008 -16733454
29170468 95650836
81074291 -58540220
92315133 -38443648
88517611 -46525596
99591182 -9033025
17031645 -98538935
-76791060 -...

output:

49999997.2281587049
49999997.3025419638
49999996.6710480824
49999996.7132198438
49999998.7399825528
50000000.5315516666
49999998.0506880432
49999998.9604979679
49999996.7553592026
49999997.1424608454
49999998.7725008428
49999997.5903435275
49999998.3012374490
49999999.1442935914
49999997.1038764343
...

result:

ok 100000 numbers

Test #29:

score: 0
Accepted
time: 753ms
memory: 141012kb

input:

100000
98649054 -16381761
-99891340 -4660392
85079131 -52550367
98751502 -15752448
38325930 -92364069
16772724 98583333
75122377 66004758
95139156 30798377
-24102560 97051870
89328512 44949025
-83521481 -54992370
-22923261 97337161
-49154851 87085012
67965351 -73353320
-79586737 60547083
44791227 -8...

output:

49999996.8124151230
49999996.7088924274
49999997.6572201401
49999997.0251825228
49999997.5584498197
49999997.9676561654
49999998.1619126648
49999996.5120547786
49999998.4548825026
49999998.2111204043
49999998.4433880076
49999997.0462427661
49999997.1573696584
49999997.0651829913
49999995.5362256095
...

result:

ok 100000 numbers

Test #30:

score: 0
Accepted
time: 710ms
memory: 142848kb

input:

100000
7197545 -99740639
39789850 91742935
-44563738 -89521349
92588284 -37781069
89874957 43846213
-97082384 23979340
52035210 85395169
87881876 -47715555
-25428031 -96713047
6688701 99776051
31394586 94944081
66622083 -74575443
81096253 -58509804
-98223145 18767345
10583592 -99438356
-97020186 -24...

output:

49999997.0242636204
49999996.4351697937
49999997.5472669974
49999996.4184565768
49999998.7878663465
49999997.8148425147
49999998.1209330484
49999996.1151277497
49999996.8872683421
49999996.1102720052
49999997.6365981922
49999998.0198364630
49999998.7855395824
49999998.6437689885
49999996.0682024136
...

result:

ok 100000 numbers

Test #31:

score: 0
Accepted
time: 704ms
memory: 140868kb

input:

100000
48053189 87697724
-99230647 -12380496
71228034 -70189504
-99862038 -5250874
-92715593 -37467545
26308785 -96477183
91137520 41157649
86371053 50398812
-99541893 -9560913
-96837592 24949526
-28842311 95750301
-99906431 4324846
32704032 -94501032
-98983846 14219579
-98402231 17804504
42162900 9...

output:

49999996.0831308663
49999996.4655374363
49999998.4432053342
49999995.6520978734
49999998.1852534041
49999998.4148445427
49999999.0013581291
49999997.2984745651
49999997.1851978227
49999999.0488718599
49999997.2643068731
49999996.6181674674
49999996.5855971947
49999997.8302103654
49999997.6317784861
...

result:

ok 100000 numbers

Test #32:

score: 0
Accepted
time: 925ms
memory: 135940kb

input:

100000
-23951830 97020265
-79900659 60056128
-83964098 54143803
97074821 23809857
61007903 79212713
-45094976 89223718
-89377964 44681664
-98513176 -17056240
-27426886 -96062608
56189487 82666265
18047227 -98345883
-99936265 1286532
18608822 98231586
-56949101 82157764
99503767 -8898358
52721687 -84...

output:

49951674.1879358590
49951419.3102471679
49951190.6025995761
49951412.5821994022
49951643.3201369420
49952981.5404847562
49951531.5661155656
49950744.7078593299
49951759.6741204783
49952147.6803641468
49950940.6456706077
49951560.3948296979
49951096.6605874449
49952163.0136613026
49952791.2038600296
...

result:

ok 100000 numbers

Test #33:

score: 0
Accepted
time: 915ms
memory: 135840kb

input:

100000
-82922797 55795521
98806631 15264719
27227855 96151671
90640250 -42064680
97570886 21814297
11561464 99312553
-63044255 -77522636
75253645 65715048
-46471655 -88525692
-74788283 66304581
59047518 -80664807
99509005 9753002
6599999 -99699054
-57520499 -81692754
-94724230 -32037998
-91266303 -4...

output:

49951008.8752196878
49952120.1151771620
49951313.8975321725
49951522.6341236606
49951493.4673221782
49951417.8990497962
49951239.5873102918
49950786.0584494695
49951126.6194570065
49951635.2534672469
49951599.4435538426
49952120.2602650821
49951396.9518224746
49951843.5781770945
49951084.2984792292
...

result:

ok 100000 numbers

Test #34:

score: 0
Accepted
time: 919ms
memory: 135796kb

input:

100000
-94334950 -33002816
94253220 33387641
80851945 -58743434
92068179 38797643
92438296 38143230
87690855 47910947
18278347 98277620
98579284 16519538
87518221 48304789
-71902423 69487747
99868312 3214776
-74106386 67019802
-27751893 -96052705
-91146289 41016721
-98277121 -18367587
60051086 79947...

output:

49951455.3120065182
49951491.3438154384
49951164.1496551409
49951630.0734802932
49950857.0331884474
49951496.7260943428
49950560.2742411047
49952262.7804619968
49952389.1146193668
49950986.9949467331
49951582.7058412060
49950722.7321048751
49950989.4603775069
49950398.0146354511
49951306.4521628246
...

result:

ok 100000 numbers

Test #35:

score: 0
Accepted
time: 899ms
memory: 135832kb

input:

100000
66711064 74461687
-99974135 -2174163
-1056958 99918825
-36812938 92895057
40400128 -91384257
15553026 -98744225
51376353 85721836
98739904 -15613787
-99973461 1404943
14291417 -98963322
98599204 16637582
-92316397 -38311014
-51618501 -85635835
-36591459 -93015393
-91664061 -39878690
99771335 ...

output:

49950743.7254163846
49952335.5206178278
49951444.8852713779
49951226.6904485822
49951463.9623628631
49951443.5648730099
49952105.3892571330
49951524.8219949305
49951689.4897814393
49951151.8564956114
49951874.8125918061
49951645.9768621549
49951281.2548604384
49951413.4285631031
49951150.7229189351
...

result:

ok 100000 numbers

Test #36:

score: 0
Accepted
time: 934ms
memory: 137916kb

input:

100000
-50274904 86430058
-30033231 -95322369
-98405889 17641407
-61672858 78646085
26241959 96398065
4426523 99837644
-99019995 -13814286
99913840 681111
90361534 -42631803
87161706 48939878
-95813074 28347212
-40705166 91264788
98666969 16193024
85025293 52491476
-3692790 -99876257
-73433772 -6783...

output:

49951659.9885078967
49950981.3209607750
49951893.0069188476
49952278.5161718428
49951380.7045541704
49950845.5129634291
49951575.7730340511
49951240.9648801610
49951205.7488277256
49951032.1517310292
49951732.0788584277
49951938.7185008973
49950923.6301758885
49951266.0488253683
49950795.5181505308
...

result:

ok 100000 numbers

Test #37:

score: 0
Accepted
time: 912ms
memory: 135700kb

input:

100000
-3329385 99331174
-70604294 70669786
-87081417 -47338605
67572485 73507498
-94011626 -33780311
-11304772 98491936
40610638 90325570
-59981987 -78948235
-25072291 -96778665
97190682 -18875941
73326816 67610572
71253553 69607148
63274218 -76228295
40643832 91311687
31058993 94112669
96614227 -2...

output:

49504623.1938575953
49506835.2408184931
49505169.5804012343
49508592.1212291718
49509011.1218332872
49505380.6373266876
49504969.0347027704
49503721.1126447022
49502895.1142386943
49508793.7919137627
49505050.2430740520
49506657.7121536732
49507735.1604684666
49502361.4840257019
49508087.7087029517
...

result:

ok 100000 numbers

Test #38:

score: 0
Accepted
time: 964ms
memory: 135796kb

input:

100000
-88188547 -45804127
35518984 -92836002
84909347 -52102417
-78092577 -61565961
53608303 -83757017
-43358191 -89594529
-99733872 -5307764
51833620 84616172
-58956000 80333018
-44663911 -88660327
39476608 -90966406
98023033 -15767254
-92649608 36189499
-20044268 -97062782
75271019 -64531120
1305...

output:

49505594.9236759394
49509390.1400756612
49506149.0899781138
49510170.0927458033
49503968.5552830324
49506197.3326305151
49507042.6411098465
49505615.6400178522
49510195.1001031250
49506434.9740628228
49507114.5427643135
49507814.9278767034
49508422.6810742095
49504711.5242513269
49506397.0885452628
...

result:

ok 100000 numbers

Test #39:

score: 0
Accepted
time: 933ms
memory: 135692kb

input:

100000
-99782597 -3415872
-61105726 79084288
30912116 -94584503
26277091 95534616
-99475895 -2777059
25739063 95981962
-29397062 94756672
13419054 -98397843
75908620 65036189
-95649393 -29121947
-99476677 -4608633
-44872944 89131709
58443026 -80934109
-80216834 -58992281
-99642474 -4043864
-93282892...

output:

49507920.8302028030
49503935.8735003918
49504166.4472331628
49506478.4563929439
49506103.9466172159
49506818.7894117907
49505185.2773857862
49507164.5004687309
49507676.9478489980
49506327.9705426767
49505482.6306196749
49507856.9061262906
49508781.7658685446
49509721.3195092604
49505347.4988808408
...

result:

ok 100000 numbers

Test #40:

score: 0
Accepted
time: 894ms
memory: 135696kb

input:

100000
-36117371 92618778
-73335258 -67061989
-80911383 57489284
89176933 -43555438
-44254978 89569042
-86787265 -48709508
-97251076 20319527
11571957 99298949
70511170 -69837542
-99634170 482767
96836213 22314925
92257812 36998150
55392610 -82618881
64718586 75192210
-33320217 93286849
71138573 702...

output:

49507470.5102520213
49504173.7449604571
49508449.7276100591
49507818.3199970126
49503991.5868418366
49507051.0852813274
49507825.0110923946
49507882.6397741213
49509928.8612812236
49503373.4930667728
49504658.5253268033
49507126.8005135730
49504450.0872117132
49508921.0961942226
49505989.4778771698
...

result:

ok 100000 numbers

Test #41:

score: 0
Accepted
time: 904ms
memory: 135704kb

input:

100000
-19955231 -97699535
94825749 -28990747
-79907148 -59107167
-99027556 1423520
37739298 -92055126
84889533 -52160862
-68994023 71800045
-78602361 61152977
-41135006 -90230500
-18711359 -97257627
66663581 74134831
-37980361 -92135750
-2196230 -99805345
61435279 78416798
99254865 5765553
9861983 ...

output:

49509084.9552789554
49509044.5589488521
49508051.3976996988
49506403.0937438682
49509646.0058206618
49510964.9010520130
49504435.0629076362
49503658.3724902645
49508600.5934109464
49508992.9808275774
49506743.6986766383
49503939.7035900801
49504163.5735945180
49508136.4803241566
49505622.8908842504
...

result:

ok 100000 numbers

Test #42:

score: 0
Accepted
time: 909ms
memory: 135776kb

input:

100000
92556374 12072350
93766905 4825190
-67271877 69890083
73298299 55897595
-31299356 -93814485
-80498315 54176779
-31345062 -88453539
83029787 -49705175
-80101942 -52307613
-69888580 -56945797
-85803388 38619155
63351605 70575401
93281896 22216160
-97847849 -20164083
76241863 52328510
-95583679 ...

output:

45013832.1076684669
45018190.6915386394
45016655.1065456793
45020233.0857538804
45026293.8037958369
45061276.3205335587
45038673.0572490022
45026156.2575882599
45013595.7430776879
45025686.7959728241
45037303.2716238573
45028239.0289746448
45020299.2964047641
45023715.7638951838
45020242.1871599779
...

result:

ok 100000 numbers

Test #43:

score: 0
Accepted
time: 911ms
memory: 135684kb

input:

100000
-32081572 90116995
-73229798 -64672076
91131427 5196295
10394383 -94678607
99786071 639864
-92342810 -852711
-84391341 -47449093
-74420874 64181438
-51777172 -78771868
-76271622 48551648
89768757 12110773
-67381897 -60367678
74807369 -64148569
48356402 -76298700
-1187892 -93943444
-93924469 -...

output:

45043971.6672017500
45037044.3237820864
45039953.5258939937
45049333.1323074028
45029998.0054949448
45024418.3487864286
45033727.9389796928
45040087.4147925898
45027614.9067239091
45044037.7991883680
45021590.2847209200
45032495.2682304382
45024798.5251680687
45019386.4142479524
45024119.8119075969
...

result:

ok 100000 numbers

Test #44:

score: 0
Accepted
time: 940ms
memory: 135632kb

input:

100000
9559919 92659433
51875371 83680106
78642333 -59484990
-67562834 73384342
-50641362 -85443942
94239770 18902122
-63150344 66462007
93871387 -2488444
-78837743 43705750
-18631355 94166502
-21600045 -92649401
96280408 -20960957
-26104161 87813365
-16304015 -96036171
-66451374 73268709
-535780 -9...

output:

45035085.1285767257
45032579.5419529676
45039705.6764854789
45027911.2698470056
45032692.0402883664
45040422.1855026707
45026712.8618487343
45031226.4947403446
45015448.0927642658
45020328.5633668378
45038180.4037777707
45031725.3324958012
45020332.4111618251
45025772.0380055085
45034324.3322297707
...

result:

ok 100000 numbers

Test #45:

score: 0
Accepted
time: 895ms
memory: 135556kb

input:

100000
63951077 -71761548
73763706 64396798
21419213 95263455
-68397093 68002102
-62901958 67448916
56595081 -71927093
-85235758 37748571
-63653511 75097403
-68746842 61306045
13699376 92719471
-39604640 -84729019
30466785 90338708
-89960990 10977635
65876081 -64868424
-42437656 -83596792
-68055453 ...

output:

45024619.4574575275
45022447.0127798915
45022571.2617214918
45022725.3194232136
45017987.7461517677
45021932.5050704032
45035073.1008262634
45020086.9484456852
45017427.0789491907
45014614.0089426488
45023853.3685528263
45040989.6071097702
45012689.0889144391
45015942.9494709000
45028884.7561759353
...

result:

ok 100000 numbers

Test #46:

score: 0
Accepted
time: 895ms
memory: 135732kb

input:

100000
-15226924 97699217
-88190354 29200235
-82332756 49054626
92982578 -33157210
59227929 -73138724
38249741 91550174
-51100484 82504881
-96377839 -15349299
36198347 91856588
-90519618 31198671
16179809 -91684442
42535161 -83090574
-70289671 63418188
70901869 -63653069
-71694352 67433238
-8028358 ...

output:

45038361.4085142091
45025634.8959463835
45036750.1804423332
45030721.8290839046
45024194.5498083979
45040922.8801916987
45032333.1125981137
45038384.8171094283
45031476.9762935266
45032198.6631958112
45038419.1376384497
45037035.0191929638
45022000.8605775908
45017701.7815513909
45027831.5414369851
...

result:

ok 100000 numbers

Test #47:

score: 0
Accepted
time: 15ms
memory: 97092kb

input:

200
40 51
52 66
16 -57
25 -86
-68 -21
-77 -23
67 39
62 36
-70 -59
-41 -34
-20 70
-22 77
-16 -82
-19 -95
-77 24
-73 23
-84 46
-78 43
-12 55
-20 93
52 -52
47 -47
-76 18
-76 18
-42 25
-76 45
78 -13
62 -10
86 -37
66 -28
44 60
58 80
-58 -25
-62 -27
-52 82
-36 57
84 13
85 13
-93 13
-49 7
-37 87
-22 52
-52...

output:

25.0980449665
27.6807694977
35.1612972810
33.4051879847
26.1910261605
25.7627016001
29.2122626678
27.9898898240
27.2367532882
25.8700685600
26.5637197179
24.8387497470
25.1733595791
27.8803287030
26.4061010126
30.4346558418
29.4939519592
32.1622854806
25.6009478340
26.1046412671
33.3829765599
26.593...

result:

ok 100 numbers

Test #48:

score: 0
Accepted
time: 27ms
memory: 97284kb

input:

203
82 0
66 0
85 0
-38 45
-57 68
-1 71
-1 80
73 25
68 23
-18 90
-10 52
45 57
50 63
-39 74
-45 85
19 78
18 74
31 91
28 85
36 43
61 73
-58 44
-53 40
16 77
16 77
16 47
29 83
-73 30
-58 23
-82 44
-63 34
65 36
86 48
-4 63
-4 67
50 83
35 58
84 14
85 14
15 92
8 49
54 77
32 46
-26 85
-29 95
67 60
74 66
89 4...

output:

25.4084631781
59.2852655898
36.6149572888
25.6357659609
25.1927907605
29.9351121116
27.5867238270
25.4624856825
43.1097175133
24.8716164709
150.9910870474
27.8770139883
28.5227368561
25.0630333331
24.9687051974
25.1195266843
62.8249281735
25.0762531550
27.7124656722
25.7920419125
27.6548410382
27.60...

result:

ok 100 numbers

Test #49:

score: 0
Accepted
time: 16ms
memory: 97192kb

input:

500
-55 23
-64 27
-61 26
-56 23
-92 38
-90 39
-81 35
-48 21
-73 31
-45 19
-1 -53
-1 -68
-1 -68
-1 -85
-1 -88
33 -59
35 -62
25 -45
31 -55
32 -57
-1 70
-1 92
0 51
-1 69
0 54
0 -72
0 -94
0 -49
0 -56
0 -49
79 -40
73 -38
44 -22
44 -22
50 -26
-64 45
-50 35
-40 28
-54 38
-63 45
-70 25
-67 24
-64 22
-89 31
...

output:

24.8160434409
25.2171914142
25.6442830176
24.7074263042
25.4244821666
24.9864970527
25.1934837301
25.1424050148
24.6632653061
25.9403025905
24.6549066381
26.1047319210
25.0361490135
26.1098521009
25.2500000000
25.9624055780
24.8650860923
25.9129471236
25.4879829540
25.6555168857
25.5235014943
26.278...

result:

ok 100 numbers

Test #50:

score: 0
Accepted
time: 15ms
memory: 97292kb

input:

503
57 0
60 0
70 0
48 36
79 60
74 56
78 59
70 53
-36 71
-22 44
-39 75
-24 47
-31 61
-75 41
-77 43
-78 43
-59 33
-62 35
-47 43
-48 44
-44 40
-52 47
-68 62
57 39
45 30
78 53
60 41
78 53
-6 56
-5 49
-9 80
-10 88
-9 82
-19 46
-22 52
-27 65
-30 72
-24 57
54 38
63 44
59 41
61 42
59 41
74 58
69 54
42 33
58...

output:

262.7184805072
24.9423338117
25.4000774668
35.6455903525
25.6785266712
24.8889100847
97.5303353877
40.8609414011
104.9696200604
24.6462756109
30.4478566019
25.1798528240
25.2245239644
24.6462756109
24.7329043284
25.2963028726
24.6275343480
24.8863905325
26.1528658973
-1
24.6285373159
50.5148522461
4...

result:

ok 100 numbers

Test #51:

score: 0
Accepted
time: 24ms
memory: 97348kb

input:

1000
35 76
32 70
29 63
29 64
33 72
34 74
32 70
35 76
40 89
41 90
14 89
10 66
12 72
12 76
12 72
12 72
9 54
9 59
11 68
12 76
-35 75
-39 83
-39 84
-21 45
-22 46
-26 56
-37 79
-24 52
-26 56
-23 49
80 -14
66 -11
98 -17
73 -12
94 -16
93 -16
60 -10
73 -12
97 -16
95 -16
23 -46
41 -82
27 -54
26 -52
34 -67
24...

output:

24.8702895059
25.1015653397
24.9336003479
25.2237932829
24.6638098632
25.5296680940
24.6884882376
24.8860397361
24.9859762897
25.1298340360
24.8246200213
25.1262909153
25.6490184572
25.2037916749
25.0230397661
24.6962692385
25.2494916605
25.4407083355
24.4391213941
24.9235009842
24.8295042369
24.825...

result:

ok 100 numbers

Test #52:

score: 0
Accepted
time: 16ms
memory: 97204kb

input:

1003
62 0
84 0
78 0
69 13
78 15
80 15
76 14
82 15
96 18
98 19
53 10
89 17
65 12
-19 75
-18 71
-18 71
-13 53
-14 58
-17 66
-19 75
-19 75
-20 80
-22 89
-44 22
-46 23
-55 27
-78 39
-51 25
-55 27
-49 24
-53 26
-73 36
-59 29
-50 55
-64 70
-63 70
-41 45
-50 55
-66 73
-65 71
-34 37
-35 38
-61 68
-52 27
-67...

output:

24.6916132279
44.6688629979
24.5350294430
24.5498290890
59.8128112338
24.5971190326
24.6820053660
24.5234819392
24.6172925195
53.1816455147
24.5270294934
25.1796937349
25.1394444649
29.6312289885
24.7673898622
25.3575553366
25.1053790149
47.6403252688
24.5544308733
24.9349687984
24.9127286621
32.733...

result:

ok 100 numbers

Test #53:

score: 0
Accepted
time: 21ms
memory: 97272kb

input:

200
9 93
5 51
-53 -17
-93 -30
-55 -30
-52 -29
91 -15
88 -15
56 -49
41 -36
14 -87
11 -65
60 51
73 62
-58 -25
-87 -37
-70 2
-96 3
38 -49
52 -68
74 42
56 32
-72 -19
-93 -25
-18 -50
-29 -83
1 -91
0 -81
84 -29
51 -18
-63 64
-42 43
-7 49
-9 57
45 29
46 29
33 -41
37 -46
92 -35
92 -35
23 86
17 63
75 -20
83 ...

output:

28.8632169350
29.5788790539
26.7833686291
26.8931472978
26.7030691705
28.0818181818
30.6077352164
26.9569761644
27.7629202196
27.9730370626
28.8600873133
29.3697020808
26.6056363032
31.2871333572
27.6716558704
27.2337718570
27.0666563746
29.8152896638
25.5806544584
26.3548871772
27.0922734085
30.054...

result:

ok 100 numbers

Test #54:

score: 0
Accepted
time: 34ms
memory: 97140kb

input:

203
90 0
94 0
52 0
-1 55
-3 97
-7 62
-6 59
-86 35
-83 33
-60 44
-44 32
-53 70
-39 52
72 31
89 38
-4 63
-6 94
8 70
11 96
-47 41
-65 56
81 27
61 20
0 74
0 96
-22 49
-36 81
-50 76
-44 68
-79 39
-49 24
39 80
26 54
32 37
38 43
50 18
51 18
-40 34
-45 38
-88 45
-88 45
70 55
51 40
-71 32
-78 35
-30 52
-30 5...

output:

27.0081462703
28.6764705882
28.2400000000
27.7811204359
27.9637967573
161.5249239858
28.6000000000
26.8560980040
61.1592459259
-1
28.7983811614
26.5707978681
2844.4209443885
29.4547843831
26.2159693914
25.8200422422
25.6806875492
39.0893791324
27.0424442621
27.5591356415
27.5331199581
27.5184474897
...

result:

ok 100 numbers

Test #55:

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

input:

500
-62 -10
-87 -14
-59 -9
-56 -9
-58 -9
-88 17
-66 13
-68 13
-68 13
-65 13
86 10
95 11
57 7
51 6
72 8
10 63
11 71
11 70
11 71
12 81
-44 83
-23 44
-32 61
-35 67
-44 83
81 -22
65 -17
76 -20
76 -20
88 -24
25 90
22 79
23 82
17 59
14 49
-85 51
-60 36
-59 36
-70 42
-57 34
48 71
34 51
43 64
29 43
42 62
60...

output:

26.8593745260
26.4708660116
26.0421259252
25.2079163058
28.2370549832
27.1189199371
26.7777017326
26.6496278244
27.4384707183
25.5797969746
25.2755909941
25.2556981170
27.0221321036
26.4216590830
25.5578815373
27.2833043861
25.0993971289
25.5863896459
27.8750785794
25.0886930457
25.4483391308
26.882...

result:

ok 100 numbers

Test #56:

score: 0
Accepted
time: 29ms
memory: 97196kb

input:

503
66 0
63 0
89 0
-51 23
-53 24
-53 24
-81 37
-61 28
-12 68
-11 65
-16 91
-15 85
-16 94
17 48
24 68
19 53
21 60
24 67
-65 30
-75 34
-82 37
-86 39
-45 20
-41 63
-52 79
-47 72
-46 71
-37 56
-25 74
-29 86
-25 73
-30 88
-27 78
12 60
10 49
18 92
20 97
14 69
28 76
23 62
17 47
29 80
21 58
-47 21
-68 31
-6...

output:

29.1983815952
25.4146241770
222.7386360738
31.0899996966
53.6596345080
26.0777441756
-1
62.3625387800
25.3501645090
25.1106714276
26.3838608146
26.9394122124
30.2412166989
28.8690848613
25.9193151069
24.6786214196
31.2137522496
24.6846212416
70.3661901996
26.5733332411
25.7595215653
26.2459061946
25...

result:

ok 100 numbers

Test #57:

score: 0
Accepted
time: 28ms
memory: 97436kb

input:

1000
-8 60
-12 96
-8 61
-8 66
-11 87
-9 69
-9 68
-8 62
-8 62
-8 63
-17 70
-17 71
-12 48
-22 91
-22 88
-14 57
-24 97
-13 54
-16 66
-17 68
44 23
62 32
81 42
51 26
61 31
59 31
68 35
66 34
66 34
47 25
50 16
55 18
91 30
51 17
90 30
76 25
69 23
64 21
66 22
63 21
-94 21
-55 12
-74 16
-86 19
-85 19
-93 21
-...

output:

25.3801326407
25.9693244615
25.8689752420
25.7984762353
26.4425057370
25.3553253102
24.6792217138
24.9245299809
25.1042962568
25.7649271387
25.6102761498
24.7634893483
26.3975447926
25.9401482630
25.3802578056
25.6654057949
26.4638877430
25.0938544243
26.1905482581
25.4457013654
25.1297212870
25.500...

result:

ok 100 numbers

Test #58:

score: 0
Accepted
time: 16ms
memory: 97440kb

input:

1003
70 0
61 0
97 0
-42 52
-55 68
-44 54
-43 53
-39 48
-39 48
-40 49
-45 56
-45 56
-46 57
-88 30
-86 29
-55 19
-94 32
-53 18
-65 22
-67 22
-81 27
-47 16
-67 22
27 50
33 60
32 58
37 67
36 65
36 65
26 47
29 53
25 46
28 51
50 18
89 32
76 27
68 24
63 23
65 23
62 22
80 29
91 33
53 19
-41 78
-40 78
-44 85...

output:

124.2466037011
25.1655077797
25.0487525374
30.2964131649
64.8484561545
24.7851409915
30.8486467303
48.2559997747
61.3382185784
119.7627331222
-1
48.1146719436
25.3600000000
25.1012271159
32.4424039753
26.0056533179
24.8246345009
40.5520739992
25.3157298320
25.1000383886
25.2808704040
25.0134336388
2...

result:

ok 100 numbers

Test #59:

score: 0
Accepted
time: 869ms
memory: 137984kb

input:

100000
41594617 -90874202
41616553 -90922126
41579076 -90840249
41587678 -90859042
41603508 -90893628
41611148 -90910318
41610867 -90909704
41585149 -90853518
41611061 -90910128
41600233 -90886472
-41392157 90946563
-41394053 90950728
-41405020 90974825
-41387761 90936902
-41423060 91014461
-4141407...

output:

49952220.5807725266
49951771.6770449281
49951371.9893360063
49951722.4530877843
49951600.6241231933
49951055.4109790400
49951961.6412743405
49951445.7744755372
49951409.2811148167
49951768.2373736575
49951956.1813356802
49950601.8756955266
49951790.3266161904
49951730.7155938148
49950967.2527117208
...

result:

ok 100000 numbers

Test #60:

score: 0
Accepted
time: 823ms
memory: 135828kb

input:

99993
99923917 0
99924571 0
99937757 0
-23163715 97243691
-23162127 97237022
-23153610 97201267
-23162718 97239503
-23151418 97192067
-23157394 97217155
-23162408 97238202
-23153027 97198819
-23160206 97228957
-23166709 97256258
-27227991 96159791
-27243429 96214310
-27237920 96194854
-27225082 9614...

output:

49950676.4874895141
104318412.7586585134
82053691.1775916666
49950848.4959955141
-1
62823858.0887818187
49951164.2282361835
50952144.1299400404
49950710.1752451062
2562289954.4436626434
87290985.0552721173
49950530.3264595047
-1
53452189.1339143440
-1
49950365.0065749288
50726280.4353199676
94580293...

result:

ok 100000 numbers

Test #61:

score: 0
Accepted
time: 872ms
memory: 137472kb

input:

100000
17236606 98488167
17233116 98468222
17228331 98440886
17232758 98466177
17231878 98461152
17231411 98458482
17222609 98408189
17235073 98479406
17225005 98421879
17233979 98473157
66868196 -74259692
66872083 -74264009
66886995 -74280569
66874697 -74266911
66881412 -74274369
66859821 -74250392...

output:

49950400.5839319751
49951113.1033806279
49952554.3327271119
49951016.6225044578
49951981.6467437074
49951323.6891307235
49951016.7356802970
49952086.3026998788
49950219.5919243246
49951676.9871694893
49951340.9940695912
49950491.0388671160
49950926.1342676282
49951133.2805535197
49951106.5999780148
...

result:

ok 100000 numbers

Test #62:

score: 0
Accepted
time: 803ms
memory: 135720kb

input:

99993
99972481 0
99935818 0
99941457 0
95115106 30556139
95193853 30581437
95202874 30584335
95192329 30580947
95147223 30566457
95183244 30578028
95182967 30577939
95190044 30580213
95188511 30579720
95162235 30571279
34715168 93756807
34705128 93729691
34720761 93771913
34700598 93717457
34699848 ...

output:

49950344.3636962697
50383244.8980588317
49950240.0072633401
49950656.4694629014
49950335.7150593698
92431763.6937951595
51224242.3295756504
49950631.1462175846
484250533.0632750392
49950493.7316514328
49950237.9749466032
62215523.3577954695
49950759.8816186786
49950680.3840496019
72516452.8659844249...

result:

ok 100000 numbers

Test #63:

score: 0
Accepted
time: 970ms
memory: 136252kb

input:

100000
12687496 -91994997
12824312 -92987026
13317803 -96565251
13299688 -96433902
12720209 -92232193
13542850 -98197029
13074398 -94800361
12545291 -90963892
13229962 -95928329
12969350 -94038672
-48673482 84982797
-45021449 78606431
-45441747 79340261
-46482111 81156714
-49368630 86196511
-4759406...

output:

45050534.9775924459
45031402.7405407280
45058668.0197665244
45033346.3674830943
45030976.4817312583
45016979.9796988666
45028401.8810623437
45021884.5377099440
45028879.9866637066
45040530.2163176239
45040983.5530843064
45031232.2778025120
45026102.8970948756
45034367.4372642264
45030069.4306419045
...

result:

ok 100000 numbers

Test #64:

score: 0
Accepted
time: 803ms
memory: 135580kb

input:

99993
95502024 0
91716495 0
93035290 0
72077807 60990245
73843982 62484734
71147783 60203284
70213842 59413009
76122586 64412825
75950793 64267459
70790432 59900904
70968931 60051945
74087858 62691094
74591423 63117197
-60476742 71946579
-62742047 74641515
-58551774 69656528
-63266536 75265477
-5829...

output:

65733201.0707420483
45023455.6965423077
45014395.9001700282
47149047.4557271376
45014289.1781606749
45018390.3390819356
55468012.0962474942
54515884.3215918690
69269766.5937204212
65741869.3378003165
45011260.7521513999
45013931.8266115040
45027567.9286370501
45039013.5204297528
80066785.8375092000
...

result:

ok 100000 numbers

Test #65:

score: 0
Accepted
time: 861ms
memory: 135628kb

input:

100000
42239570 84097913
40467871 80570506
44226575 88053991
40847944 81327222
40619575 80872544
44389877 88379120
42783412 85180690
40891805 81414547
42268186 84154887
41491942 82609406
73479752 -67728993
69659672 -64207884
70858995 -65313344
71508900 -65912386
69056997 -63652376
71008080 -65450762...

output:

45013524.0640210509
45020398.7656000480
45019955.6471926048
45008672.1921625212
45017581.5665665343
45010581.7339772135
45013856.7514872104
45012629.0191479251
45016784.9746403396
45011523.2878575400
45026949.6634179950
45026007.7647797540
45018574.5536487699
45024474.4795328975
45012557.1394633874
...

result:

ok 100000 numbers

Test #66:

score: 0
Accepted
time: 809ms
memory: 135616kb

input:

99993
96817884 0
92960446 0
94106286 0
-33154491 86737124
-33608115 87923875
-33196444 86846880
-32705929 85563620
-33550638 87773506
-34572794 90447619
-34019689 89000613
-33108878 86617795
-35297179 92342720
-34664558 90687688
-6326254 92273893
-6316622 92133389
-6606001 96354241
-6694254 97641488...

output:

45025599.0601631030
45010203.0927176476
45016437.3093482777
45006467.8550140634
131742656.7725027502
46980361.8293543532
80973529.2432912886
52921873.4666583464
45011842.8843788281
68504825.0616140217
45018861.0515193418
59853174.1557963490
59496860.4174862131
71137140.2858088762
69404093.6005590707...

result:

ok 100000 numbers

Test #67:

score: 0
Accepted
time: 890ms
memory: 135632kb

input:

100000
-54553504 -83466397
-53217438 -81422228
-51401674 -78644124
-53757138 -82247964
-53403130 -81706335
-54001247 -82621449
-51670298 -79055116
-54267073 -83028160
-51905316 -79414692
-52078219 -79679232
-52023670 -79595772
-50932231 -77925880
-53690814 -82146489
-54567725 -83488155
-51286909 -78...

output:

45049274.7608778253
45035096.8537957370
45026791.0454171002
45029899.2833551764
45029865.2894790396
45044294.7701691240
45015654.4181945771
45041224.6847060919
45033658.7823966444
45015206.2866536602
45032305.8972296491
45041809.5075903907
45031745.0456340015
45023243.8834511787
45030383.3286295980
...

result:

ok 100000 numbers

Test #68:

score: 0
Accepted
time: 825ms
memory: 135716kb

input:

99903
94448229 0
90761763 0
97985588 0
89901191 14452033
97883093 15735161
90118625 14486987
95578572 15364698
94701726 15223741
98448883 15826114
92212912 14823653
94215840 15145633
95077988 15284227
91419317 14696079
91425707 14697106
90844976 14603751
98587220 15848352
97841999 15728555
91363965 ...

output:

45011299.7432542816
134372110.0542201102
45014323.9347484708
45013925.5732134506
45199650.7069377825
47433053.8517436832
-1
179514912.4773603976
45024826.5968423411
45018053.6683541909
45013564.3147946149
45020087.0812145695
45023353.3642510697
187685563.8983113170
45018822.4061009884
-1
86547804.31...

result:

ok 100000 numbers

Test #69:

score: 0
Accepted
time: 838ms
memory: 135680kb

input:

100000
88804287 36439715
86562171 35519691
87659885 35970124
89457475 36707742
83298350 34180423
91106060 37384218
91620802 37595437
90862639 37284334
85069690 34907271
85764475 35192367
92170179 37820866
87796542 36026200
85616339 35131581
87350464 35843157
90172873 37001297
89474600 36714770
90840...

output:

45025630.7338846922
45016999.1407901645
45020400.7283336446
45037891.7342360616
45045272.8010038808
45009662.0720252171
45038911.4381610751
45024442.0488517210
45021030.9468094707
45043493.9626652151
45031010.4706786573
45017259.8968520090
45057873.6377957538
45029140.5477419719
45007418.0812072381
...

result:

ok 100000 numbers

Test #70:

score: 0
Accepted
time: 803ms
memory: 135608kb

input:

99903
95572601 0
92262610 0
94280776 0
17594269 97925670
17071048 95013545
16101053 89614772
16162408 89956264
16801040 93510741
17116697 95267616
16966675 94432627
15954553 88799389
17348696 96558871
17153395 95471867
16358027 91045032
16040142 89275758
17578486 97837828
16743413 93190002
17196216 ...

output:

78834094.0361865014
45349195.0501640439
45171861.5025769323
48480891.2220246196
45009700.9962923899
45055519.3038752377
53401156.2798113525
45007886.0118599683
45002321.0308878198
237333132.9838363528
45004216.4378639534
45016230.6974557787
45015011.0378342271
45004955.1216323376
45007950.6161544919...

result:

ok 100000 numbers

Test #71:

score: 0
Accepted
time: 846ms
memory: 136364kb

input:

100000
90980678 90980678
-90980678 90980678
90980678 -90980678
-90980678 -90980678
90980678 56516627
-39032083 90980678
-90980678 -67650282
90980678 77163629
57789179 90980678
-90980678 -60740012
-90980678 -46397517
25299242 90980678
-1387583 -90980678
9324008 -90980678
-90980678 47716991
90980678 -...

output:

45454659.8830251396
52267721.0949332640
47567301.4165598974
45835920.4892062023
45281217.3320670351
49497507.4403073639
51087067.3972035870
47211961.4669472724
49979164.3011098430
47194779.2571501657
50877841.0260502994
45886964.4134847596
45659783.2572532147
46666472.0335006863
46848634.4928513318
...

result:

ok 100000 numbers

Test #72:

score: 0
Accepted
time: 839ms
memory: 136336kb

input:

100000
90964825 90964825
-90964825 90964825
90964825 -90964825
-90964825 -90964825
66922048 -90964825
-3433934 -90964825
90964825 -65962488
-35699201 -90964825
-64781820 -90964825
-68303343 -90964825
-90964825 -11834307
-90964825 -75592444
61554274 90964825
-90964825 -65419756
-90964825 -83227577
-2...

output:

52506632.9411708862
48917742.2433202416
45730847.9844045565
46625710.2538793609
45894715.5302421600
46243303.9184774086
46323847.8251028880
51857953.7106286362
50701807.7602210119
53111418.4215916395
53185499.0273624286
49541798.4368137568
48782381.5436496213
46126166.8516915888
51463817.9565056413
...

result:

ok 100000 numbers

Test #73:

score: 0
Accepted
time: 313ms
memory: 127780kb

input:

100
94620051 94620051
-94620051 94620051
94620051 -94620051
-94620051 -94620051
19629451 -94620051
39482667 -94620051
80264366 94620051
73728319 -94620051
94620051 -8757638
-94620051 48404092
97294526 97294526
-97294526 97294526
97294526 -97294526
-97294526 -97294526
74085262 -97294526
97294526 5339...

output:

57058690.5873583779
58750526.7170771062
53921471.6114118323
48054800.0638518035
51388953.7726174220
53049592.9487737268
50255976.6856611371
51611646.5216844529
49085978.9030773938
49986287.6034015492
57564532.4936763868
53389743.1069165543
51263620.2503185719
47818554.7950521186
55469541.8433356732
...

result:

ok 100000 numbers

Test #74:

score: 0
Accepted
time: 343ms
memory: 127792kb

input:

100
96939842 96939842
-96939842 96939842
96939842 -96939842
-96939842 -96939842
96939842 9467761
72127104 -96939842
-90892367 -96939842
92642617 96939842
-96939842 -3094298
82157644 -96939842
98980503 98980503
-98980503 98980503
98980503 -98980503
-98980503 -98980503
98980503 29737792
40467990 -9898...

output:

59832159.8365839794
56789627.0423192009
58605753.9200867191
56241909.2553724200
58403522.0637229532
49867276.6070747823
53771735.3832919523
60878114.6120461747
65403126.5516145378
60385174.3169507235
52834342.7179391831
56640040.6244990379
57515466.0745164603
51278302.0823657215
58653062.9318082333
...

result:

ok 100000 numbers

Test #75:

score: 0
Accepted
time: 376ms
memory: 128520kb

input:

10000
98738384 98738384
-98738384 98738384
98738384 -98738384
-98738384 -98738384
98738384 -22669726
98738384 -57747390
54319739 98738384
-12312798 -98738384
-45545728 -98738384
-98738384 901349
99911171 99911171
-99911171 99911171
99911171 -99911171
-99911171 -99911171
74948172 -99911171
-99911171 ...

output:

49188554.5716549605
46958060.0143506080
45863802.9493653700
50306854.0210013986
46668429.3058183044
52705395.0631661117
52873900.9345917106
52514950.4219975322
52575642.5149521232
48850843.5111387372
48330406.9893539250
47369837.8276599050
50582138.7499192804
51929332.5739225447
49899005.5120346844
...

result:

ok 100000 numbers

Test #76:

score: 0
Accepted
time: 363ms
memory: 128484kb

input:

10000
96091308 96091308
-96091308 96091308
96091308 -96091308
-96091308 -96091308
4375227 -96091308
96091308 41088450
-96091308 -26224158
38116835 96091308
17474983 96091308
-96091308 69402616
99261504 99261504
-99261504 99261504
99261504 -99261504
-99261504 -99261504
99261504 -85669909
-92897330 -9...

output:

50724068.3823507801
46801711.8249328956
46674376.9164713994
48909144.5215955824
52909623.9018947184
53004479.1263406798
49661466.4193414822
49370888.0708044395
52436940.4800759852
51923930.9500074908
45244547.9434834793
46351287.2216959745
48167529.3834429234
46641515.8122306541
45379267.6663666815
...

result:

ok 100000 numbers

Test #77:

score: 0
Accepted
time: 307ms
memory: 127676kb

input:

16
92745291 92745291
-92745291 92745291
92745291 -92745291
-92745291 -92745291
-60558247 -92745291
92745291 1929378
-58460896 -92745291
-92745291 -74454813
-59173372 92745291
-48562718 92745291
92745291 -53804670
78260613 92745291
-45079729 -92745291
92745291 42058113
2338714 -92745291
-92745291 -29...

output:

89337940.6383037567
59140564.8412466869
60797197.2508570105
55026722.4199239686
57981311.2465901002
67061094.8350036293
65972052.6269024685
76743936.9091992974
81881611.8233651221
56558247.6286640987
51620749.4492294490
56964033.1841271743
73545017.8452876210
133429846.9312586039
67627378.0302955061...

result:

ok 100000 numbers

Test #78:

score: 0
Accepted
time: 298ms
memory: 129684kb

input:

16
97696305 97696305
-97696305 97696305
97696305 -97696305
-97696305 -97696305
464073 97696305
-97696305 -18165588
1235320 97696305
97696305 -13186754
-86661002 -97696305
-97696305 -3344870
97696305 -73188922
97696305 86322845
97696305 1731050
97696305 -60730139
15513561 -97696305
65577407 97696305
...

output:

87450330.1612205058
131341374.7932608575
96820367.5912458301
93950109.5105999410
132387617.0056074709
92120838.6090779752
119142888.8786578327
113821051.0967749655
90253301.3622581810
69083337.0602497756
114587720.4623712599
126525544.7013264149
152797663.2479189038
122068059.9629203528
77787513.096...

result:

ok 100000 numbers

Test #79:

score: 0
Accepted
time: 761ms
memory: 143808kb

input:

100000
92376819 92376819
-92376819 92376819
92376819 -92376819
-92376819 -92376819
92376819 41805180
-11998303 92376819
21713537 92376819
-92376819 27922339
92376819 -22303293
-41355539 -92376819
76681681 -92376819
92376819 86696920
-83870485 -92376819
29507177 -92376819
92376819 -88244373
92376819 ...

output:

46201653.2820184827
53697302.1358478740
46190510.1874202788
53399882.5071025565
46785145.6808343604
46286822.0141298622
50856242.5705604032
50476943.1091810092
46604625.2676672339
49322963.6448011026
46334963.0629660338
50388990.5052299574
46473332.2713367194
47623664.3778677434
46223105.9963950962
...

result:

ok 100000 numbers

Test #80:

score: 0
Accepted
time: 737ms
memory: 143768kb

input:

100000
94696610 94696610
-94696610 94696610
94696610 -94696610
-94696610 -94696610
-94696610 28267614
-8921868 -94696610
-29418043 -94696610
94696610 -73710923
-94696610 86211805
94696610 -70022012
88724613 94696610
-7661772 94696610
-23421057 94696610
83791803 94696610
94696610 -44484998
83682913 -...

output:

51472469.0572599918
53935198.3736314848
54293248.7666910663
49319138.7117181346
51092308.1098874807
54809448.9841402024
49093868.0461603329
55364458.9476689100
52804371.4519339651
52755587.0170128718
47422455.4038970321
47582660.7485897094
48028514.9770173430
52769981.5261909366
48116130.4612035453
...

result:

ok 100000 numbers