QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#637603#6620. Linear Fractional Transformationucup-team1259#AC ✓199ms4064kbC++20641b2024-10-13 13:30:242024-10-13 13:30:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
-1 0 0 -1
0 1 -1 0
1 0 0 1
0 -1
-1 0 -1 0
0 1 0 -1
1 0 1 0
0 -1

output:

1.000000000 -0.000000000
0.000000000 1.000000000

result:

ok 4 numbers

Test #2:

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

input:

100000
0 0 -1 1
1 1 1 0
1 0 1 -1
-1 0
-1 -1 -1 1
1 -1 1 -1
-1 0 1 0
-1 -1
-1 -1 0 -1
-1 1 -1 -1
0 -1 0 0
1 1
1 0 0 -1
0 0 0 0
-1 -1 1 0
1 1
-1 -1 0 -1
0 1 1 -1
1 0 -1 -1
1 -1
0 1 1 -1
1 0 1 0
0 -1 0 1
-1 -1
1 1 -1 1
0 0 -1 -1
0 1 0 1
1 0
1 1 1 -1
0 1 -1 -1
1 0 -1 0
1 -1
1 0 -1 1
-1 -1 1 0
0 -1 0 1
0...

output:

1.000000000 1.666666667
-1.000000000 1.000000000
-1.500000000 -0.500000000
0.333333333 -0.666666667
-0.384615385 -0.923076923
-1.000000000 0.000000000
-1.500000000 0.500000000
-0.853658537 -0.317073171
-1.333333333 0.333333333
0.172413793 -0.068965517
-1.000000000 -1.000000000
-0.666666667 -1.333333...

result:

ok 200000 numbers

Test #3:

score: 0
Accepted
time: 159ms
memory: 3816kb

input:

100000
2 -2 -1 -1
-1 2 2 -2
-1 -1 -2 2
2 0
-1 1 0 -2
2 -1 -2 1
2 -2 2 1
2 2
2 2 -2 -1
-2 1 2 1
1 1 -2 -2
1 -2
-2 -1 0 1
2 -1 1 1
1 0 -2 0
-1 0
1 2 -2 0
2 0 0 -1
-1 1 -2 -1
-1 2
1 0 0 -1
2 -1 -2 2
1 -2 -1 1
1 2
2 1 -2 -1
-2 2 0 -1
0 1 -1 1
1 -2
2 2 1 1
-1 1 2 2
-1 2 -1 -2
0 0
2 -1 -1 -2
1 -1 -2 1
0 1...

output:

-0.268727705 -0.982164090
-0.557315937 -2.690587139
-0.603550296 -1.248520710
-0.162162162 0.972972973
-2.230769231 -0.846153846
0.529411765 0.882352941
-2.000000000 -3.000000000
1.312373225 1.336713996
-2.000000000 1.000000000
-3.500000000 -7.500000000
0.929729730 0.978378378
-3.000000000 -1.000000...

result:

ok 200000 numbers

Test #4:

score: 0
Accepted
time: 157ms
memory: 3808kb

input:

100000
-2 -3 1 1
0 -3 3 3
-1 1 0 3
-1 -2
-3 1 -3 -1
0 -1 2 3
-2 0 -2 1
2 3
-2 1 3 -1
3 -1 3 -2
2 1 0 -3
-3 -1
-1 2 0 3
1 1 -3 -3
-1 -3 2 -3
2 1
0 -3 1 2
-3 -2 0 3
-2 2 2 -3
2 -3
-3 0 -3 2
0 0 -3 1
0 1 0 3
3 0
-3 -3 0 -3
1 1 3 -2
1 0 2 0
-1 1
-3 1 -3 2
-2 3 2 3
0 2 -2 -3
-1 -1
1 -2 1 1
1 1 -2 -3
-1 0...

output:

1.313513514 2.318918919
11.333333333 -22.333333333
3.041260745 -1.188538682
-1.411764706 -2.647058824
1.031596225 1.575297497
-3.666666667 2.000000000
1.333333333 -5.333333333
-4.333333333 -0.000000000
5.035019455 -2.439688716
-7.000000000 -1.000000000
-3.577777778 0.733333333
5.551724138 4.37931034...

result:

ok 200000 numbers

Test #5:

score: 0
Accepted
time: 152ms
memory: 3844kb

input:

100000
-4 -1 -3 1
-3 -4 -2 -2
-1 2 -4 -4
-1 2
1 0 1 4
-3 0 4 -4
-1 -2 -3 -1
3 4
-2 3 2 3
-3 2 4 0
2 -3 -2 0
1 -4
1 1 1 -3
3 1 -4 1
2 -3 -1 4
3 4
3 -2 3 1
4 -3 1 2
3 -1 -2 0
2 0
-2 -4 3 -2
2 1 3 1
-1 1 -1 -1
-4 -2
2 4 0 -2
-1 -2 -1 -4
0 -1 1 -3
1 3
-2 -2 -4 1
4 3 0 2
-2 -1 0 4
0 2
-3 0 -3 -1
-1 1 -4 ...

output:

-4.000000000 -4.000000000
2.472399768 1.445090064
-1.850992300 -0.274590608
-8.808298488 4.633000965
-1.171974522 2.815286624
2.785714286 -2.857142857
0.052451539 -2.079817560
0.049797898 2.210347615
-3.461386139 -0.186138614
1.254023869 4.017080915
0.000000000 1.000000000
3.059171598 -3.142011834
1...

result:

ok 200000 numbers

Test #6:

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

input:

100000
2 -1 -3 4
3 5 1 -5
-1 -2 0 -4
5 1
-3 2 1 0
3 -3 2 -5
-4 -4 2 1
3 3
3 -3 2 -2
3 5 -2 5
2 -3 0 3
-2 -1
-4 2 1 1
-2 5 1 5
4 -3 2 5
-1 2
-4 4 -5 2
-3 -1 5 5
-5 3 4 -4
-1 0
5 -1 -1 -3
2 3 -3 -5
-4 -1 -5 2
5 2
-1 -4 -2 2
-5 5 -1 2
-3 4 -3 -1
-1 -1
1 -3 -1 -3
-5 -3 -4 0
-2 -1 -4 2
0 4
0 -4 -4 -2
-4 ...

output:

1.816354697 -4.945829380
0.946127072 -1.116473583
-1.542493678 4.473829412
1.577540107 4.401069519
4.030285036 5.621733967
-1.925716036 -3.670240466
-2.089336579 1.939406494
-6.391167192 -0.593059937
-4.000000000 -2.000000000
2.333333333 -3.333333333
2.892612699 -5.473493599
6.540540541 -0.243243243...

result:

ok 200000 numbers

Test #7:

score: 0
Accepted
time: 128ms
memory: 4064kb

input:

100000
-6 6 -2 4
-5 5 3 -6
-1 4 -6 -4
1 5
-4 -3 -4 5
6 -3 1 4
-3 5 4 3
-1 5
5 -2 -5 2
-2 3 5 5
2 2 -3 0
2 4
-1 -6 2 1
-6 -5 4 -4
-5 -6 3 3
1 5
-3 5 1 1
5 5 -4 0
-1 4 6 -3
2 -5
3 1 -2 -4
4 3 3 -3
-5 -6 2 -2
2 0
4 -4 5 -4
6 3 0 1
3 4 -2 -1
6 -4
-5 6 -6 -3
-3 2 3 3
5 -3 -5 -6
2 -2
-3 5 3 -5
0 3 4 3
1 -...

output:

-6.309906859 -3.307366638
3.365726447 3.642666587
-3.795572959 -2.487427591
1.750836742 0.544440312
-2.149610847 -0.907648305
0.872600877 -1.883633066
6.092863541 -2.229322186
-4.667996272 -6.481988904
-3.133743951 -5.785745711
4.567085261 5.248512888
2.568149211 -4.760401722
-2.533333333 -8.7333333...

result:

ok 200000 numbers

Test #8:

score: 0
Accepted
time: 172ms
memory: 4032kb

input:

100000
-2 -1 -3 0
4 -4 -2 6
2 -1 -7 0
0 -6
-1 0 1 -2
-2 -3 2 -5
3 -2 -1 5
6 -1
1 5 -6 7
-6 -3 -3 2
7 -2 -3 -3
-3 -4
1 7 -5 -2
-5 -4 -5 -4
2 0 1 6
7 4
1 -3 6 -7
-6 -6 1 -5
4 -2 1 1
-3 -3
-5 0 2 7
-2 2 -5 1
3 -4 -1 6
6 4
-7 4 3 -2
-5 4 7 -7
0 2 0 2
2 -3
-7 1 4 -6
0 5 2 -6
4 -2 4 -5
-2 3
1 -7 -1 -7
7 -...

output:

-2.131422580 2.030059420
-3.893870082 0.751143641
-2.398470468 1.637364288
-6.139589807 -1.605469236
1.866404715 -5.212180747
-1.801550097 6.410088131
0.592365006 0.964587941
3.248780488 -5.960975610
1.890600765 -0.350222314
3.415739564 -0.418300909
2.268744488 6.197209230
-3.230769231 18.846153846
...

result:

ok 200000 numbers

Test #9:

score: 0
Accepted
time: 177ms
memory: 3812kb

input:

100000
6 1 3 5
7 -1 2 0
-3 -6 0 3
-6 -8
4 8 -4 7
-2 -5 -2 7
-2 -8 -4 -5
-7 -8
4 -7 -1 -5
2 5 -7 0
-4 0 -7 -5
-7 1
8 2 2 0
1 6 -6 3
0 -7 5 0
2 -5
-7 6 8 5
-5 3 -8 8
-5 0 -1 -8
5 -4
-1 6 -5 8
6 -7 4 5
-4 3 -6 -6
3 2
5 -2 1 5
6 -6 -4 0
3 5 -6 3
-8 2
-4 3 2 -8
6 0 3 7
-4 -8 -4 2
-5 0
-7 3 -3 -3
1 -8 -6 ...

output:

-0.120524505 3.034501999
-4.005907741 5.584209922
-8.429934826 -5.987339190
4.602292605 -0.542856079
3.464705882 -2.041176471
0.630072896 5.112222936
-5.269035533 2.233502538
-4.732206346 -6.242760088
-2.783023606 -0.213460573
9.161100196 90.508840864
0.886549330 -8.030836799
9.689974174 6.916836337...

result:

ok 200000 numbers

Test #10:

score: 0
Accepted
time: 151ms
memory: 3752kb

input:

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

output:

-0.940805671 5.363530008
-0.427089404 -3.365310642
6.205317610 -8.463662471
6.158889545 -2.382161843
-1.629582413 11.371923186
-9.705901509 3.353294497
9.209075412 10.567479947
-10.687899399 -2.079464938
1.850064638 -8.363935346
3.319235637 -4.350909147
-4.835705045 -8.081500647
-0.383773614 5.69025...

result:

ok 200000 numbers

Test #11:

score: 0
Accepted
time: 145ms
memory: 3824kb

input:

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

output:

9.397932001 -4.725585826
-4.610935140 -0.753618245
1.813971728 -2.473520383
8.032270113 -10.880705162
0.668225860 -4.396926161
3.426765684 -9.996291488
2.386955395 1.932308899
9.105260114 -6.992107862
-4.902256051 5.559522506
-3.020761246 4.211072664
13.408651875 -1.738841704
7.077852025 -2.83584252...

result:

ok 200000 numbers

Test #12:

score: 0
Accepted
time: 156ms
memory: 3748kb

input:

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

output:

-9.641562965 -7.839370782
-0.612303383 -0.743837945
8.611786775 -1.485645428
5.124889376 3.048886199
-7.682534317 -0.430414616
2.663172955 -7.116889599
-8.116446477 5.061364682
-8.475793145 1.651335910
-7.868820040 -1.396835860
2.338296950 1.472097730
-7.075537705 -3.547050350
2.637015792 -0.2656891...

result:

ok 200000 numbers

Test #13:

score: 0
Accepted
time: 164ms
memory: 4048kb

input:

100000
-6 -2 -12 -5
-6 5 9 -10
12 5 12 8
7 -2
1 0 8 0
-10 -10 9 3
-9 12 -3 6
-4 -9
-1 -3 -12 8
0 -8 11 -2
11 -2 -6 11
3 -8
0 -3 -3 11
10 1 -10 7
-8 -3 -1 1
-12 -2
-7 -1 -8 1
1 8 12 10
12 -2 2 -10
-7 4
-6 -12 -8 8
-10 3 -6 -1
-3 0 -2 12
6 10
11 -11 -10 9
9 -12 -4 -1
10 -6 -8 -7
5 1
-10 4 -10 4
-10 9 ...

output:

11.013882132 14.485141047
8.767393061 2.103428854
-1.186562202 7.644713637
-3.769230769 -0.153846154
-9.165900180 7.093457806
-4.583897363 6.685280205
-5.561061947 -7.184070796
2.539220333 -3.116357551
-4.846226518 -3.612041714
6.355545467 4.562554617
8.712031302 7.469169382
-4.355833993 5.675856095...

result:

ok 200000 numbers

Test #14:

score: 0
Accepted
time: 164ms
memory: 4032kb

input:

100000
12 -13 -8 -3
1 -5 8 -7
-3 2 -6 12
-13 8
2 11 -7 6
-13 -11 8 -13
-7 8 3 13
-5 1
-3 -11 -9 0
-4 11 6 9
6 9 -12 13
11 13
-2 -5 -3 -6
5 -11 -5 -3
-12 -13 -10 6
-3 3
4 -13 -3 0
13 -4 -12 13
-2 -2 4 -6
-3 12
11 -4 0 13
-1 2 3 8
-6 12 -8 -4
-13 -2
-12 -4 10 -2
-10 -13 3 13
-7 -10 -7 -4
-7 13
8 -12 7...

output:

-7.335360872 5.110779735
14.806845552 74.786644621
-8.949423615 9.235864818
-6.692056245 -6.843709337
9.666674782 1.097874000
12.910265370 15.659431721
16.645082083 -4.313471567
6.034002016 -7.816828188
-7.449033025 3.894394534
-11.075661591 7.078145114
13.183888523 -1.164269125
-10.977407950 15.599...

result:

ok 200000 numbers

Test #15:

score: 0
Accepted
time: 144ms
memory: 3848kb

input:

100000
-10 13 0 3
14 13 11 -3
7 4 -1 -8
-13 9
-7 1 -8 -8
-6 -12 -14 11
10 12 -13 -2
-8 14
7 6 6 -11
-12 -11 -9 4
-12 12 -12 1
10 -6
-14 4 -5 -14
14 -12 -3 11
2 11 -8 1
10 1
-4 -14 -4 -4
-6 -2 -4 14
0 -5 -6 -2
3 1
-4 12 -6 1
12 2 9 5
-13 -6 -14 4
-6 8
-2 2 -1 -10
14 -9 -5 0
4 -14 -3 -7
-8 -10
0 13 10...

output:

-1.187920126 3.455980441
-13.759338446 -4.633636074
-3.460191597 4.180226125
-4.726109242 5.799971742
-4.272163603 -0.904383770
-7.729518292 0.012055716
-1.527735808 -8.303475070
9.016926078 -7.526332082
-3.744128718 -8.725139687
-4.771417940 -0.220236742
-5.749484152 -11.900211311
1.450237183 -5.35...

result:

ok 200000 numbers

Test #16:

score: 0
Accepted
time: 182ms
memory: 3776kb

input:

100000
14 -14 -7 -15
-10 -2 -5 -5
-9 12 15 -12
-1 14
-8 -9 15 -9
-13 6 7 9
12 10 9 1
6 -11
-11 9 -6 2
-3 11 -8 3
10 -2 -8 -13
-11 -13
-9 -12 14 2
0 1 4 -3
5 10 14 3
5 7
11 -10 0 -11
6 4 11 -2
-1 -4 4 -12
6 -7
1 -3 -2 -7
12 -11 -6 8
15 -1 12 -1
-10 9
-10 -6 4 4
11 13 14 -11
-10 12 -10 11
-12 -7
14 6 ...

output:

4.428658017 -18.126991530
10.419613598 -2.047225359
-3.263708063 -0.665963761
13.834557706 3.176504677
0.811301724 -12.962033067
0.717283159 -3.843111793
3.435480588 3.521875979
-1.941967674 14.576659457
-14.948280915 10.901401042
-4.244322603 -3.072524203
-6.362399020 9.118611965
5.801892178 15.812...

result:

ok 200000 numbers

Test #17:

score: 0
Accepted
time: 158ms
memory: 3808kb

input:

100000
9 5 -15 2
-2 -11 5 6
-13 -10 15 -1
-9 6
16 -7 -12 -4
13 -9 -12 -10
-16 -10 -11 13
16 -14
-15 -11 -2 -1
-14 2 -1 -2
-15 5 -7 6
10 3
-12 -6 -14 3
-16 1 9 13
-7 -6 -8 -3
-16 3
5 8 9 6
-15 10 -4 -14
7 -13 -3 -9
-8 11
11 -5 -8 -3
-8 15 -3 14
3 -8 10 11
4 -9
-7 11 -14 11
16 -7 11 -15
12 14 14 -7
2 ...

output:

-0.982729397 -15.501844941
-3.665198209 -3.780295645
-2.327865742 -1.047988419
11.302677934 7.154919524
-4.909148384 -16.273543706
9.008945416 8.258780162
4.069824243 -13.380125674
4.962757268 -9.510074864
-2.967314365 -8.407564988
-7.585704843 -1.955906695
-4.295839872 -11.338920227
7.191417062 4.4...

result:

ok 200000 numbers

Test #18:

score: 0
Accepted
time: 169ms
memory: 3804kb

input:

100000
1 12 -13 4
6 -2 -14 -2
14 -2 2 -9
-9 4
14 -16 7 16
16 -4 11 5
13 -16 -2 -16
-10 -6
14 -15 -17 -15
-11 17 -9 3
-4 -13 -1 1
4 -14
9 -11 -16 8
-2 -11 -10 9
-9 -13 13 12
1 17
17 13 10 13
14 -13 6 4
3 15 14 12
10 -13
2 -8 -5 -14
-5 9 9 2
1 -10 -3 -11
-2 8
7 -8 -1 -15
15 5 10 4
-14 4 6 6
-2 3
1 -12...

output:

-15.100627686 3.573868784
10.461274574 4.518654966
8.417568732 -6.270556533
-17.907437820 3.232653731
7.060698951 2.118412949
10.483340778 4.023308497
5.875137588 4.156460023
11.916747526 10.898311663
-14.822429646 4.301817483
3.788573501 -5.442700019
6.647285547 5.133870506
1.216185696 13.279924718...

result:

ok 200000 numbers

Test #19:

score: 0
Accepted
time: 141ms
memory: 4048kb

input:

100000
15 6 5 12
-6 -6 -4 -12
-7 8 4 3
-11 -5
-1 10 -2 -2
3 -2 -4 14
-17 13 -12 -2
10 0
-6 -16 -13 -5
0 4 9 -13
11 16 -10 -8
-1 0
-9 13 -12 -4
12 -18 -7 8
-6 11 -8 -3
-16 0
11 5 15 10
14 -9 13 -18
-13 -14 5 -4
-15 13
8 -18 -17 16
-3 1 3 -11
11 17 14 15
0 11
15 -8 14 11
-8 12 -14 18
4 12 11 7
-16 3
-...

output:

-3.306203712 -2.915417578
-5.410263295 8.090313206
-13.036730499 6.643718811
0.967684186 29.467156300
4.315480537 0.255876378
14.430447072 2.669929264
16.574948329 18.616325530
-4.434330407 11.147879650
-1.548529050 10.421889824
0.708691765 -8.671741390
0.773024020 8.402889940
-18.981081580 8.163112...

result:

ok 200000 numbers

Test #20:

score: 0
Accepted
time: 194ms
memory: 4028kb

input:

100000
-11 -2 12 -10
-7 -13 2 -5
-15 -6 -14 -16
12 -2
3 1 6 -16
-1 -5 -14 -18
0 3 -7 -14
-7 17
16 17 -10 13
-3 18 -18 5
-15 1 -16 12
19 0
-15 -18 13 -9
-5 3 -14 9
-6 9 10 15
-4 14
10 -19 -9 14
-13 6 -12 -15
10 2 -6 7
16 -1
14 12 -15 11
-2 -17 11 0
18 16 -17 -13
-6 4
-16 -18 3 -5
15 -10 -12 -1
-18 -1...

output:

3.698873267 -7.693539575
-12.204848147 -12.098746169
-12.961117016 13.920704091
11.852502386 7.536280654
-7.696875015 8.509124615
6.798057260 1.432690949
-11.904624842 -2.037710576
-28.253314345 -5.533476698
-8.129981909 14.704966147
-15.166263222 -8.021916591
-54.020342942 15.045524369
-10.84208957...

result:

ok 200000 numbers

Test #21:

score: 0
Accepted
time: 167ms
memory: 3808kb

input:

100000
9 -1 10 -3
-12 3 10 -10
-7 20 -5 -20
-5 -3
-12 8 7 0
-8 15 0 -4
-6 -3 -11 8
4 11
16 6 3 -12
20 -14 11 -5
-6 10 17 2
-4 -13
8 14 -14 -13
10 4 4 -9
4 -2 -6 -16
-11 1
1 -1 13 9
0 15 -6 3
16 -2 12 8
11 -14
1 -11 -4 16
-20 1 -12 10
16 -13 2 -18
-7 17
-18 3 -4 15
-17 8 4 -11
2 -16 -16 17
-18 10
12 ...

output:

10.298825502 -6.952922897
-5.112847031 -2.082813292
14.185697712 -3.236903039
-9.068810514 -16.065232879
11.908925677 8.588148998
-15.219570228 9.760576541
-40.208795138 -89.096531999
4.726367950 -18.569707758
-9.098518218 -4.311148425
7.659449850 1.995550912
-5.331271487 11.461969604
1.734497407 -3...

result:

ok 200000 numbers

Test #22:

score: 0
Accepted
time: 199ms
memory: 3868kb

input:

100000
-13 -26 -29 14
28 -9 -14 3
-25 1 -19 30
2 14
-13 -6 5 5
-8 11 -29 28
22 -9 -7 16
-23 20
30 19 2 -10
-2 15 0 -9
1 4 -16 -4
10 1
-7 -27 -23 -6
-18 -9 -2 -24
-3 30 23 28
-7 -8
25 9 3 -22
-8 -26 0 14
-19 -23 29 6
12 29
-7 17 -4 -16
-4 14 24 -25
-13 -22 -24 -16
22 11
-4 -18 17 11
-3 -21 -16 -30
21...

output:

-6.801053399 15.486678866
-3.122996687 31.510311176
3.700840758 -12.298657297
-25.847971094 -48.935200841
6.950077673 -23.066737987
-25.672683953 -9.197737254
-28.230749942 -2.758479843
13.595473784 -5.629504407
27.792083355 18.795960832
44.050894429 -27.903139905
21.462425419 5.072644354
4.12429043...

result:

ok 200000 numbers

Test #23:

score: 0
Accepted
time: 182ms
memory: 3808kb

input:

100000
37 12 -7 8
-26 -32 -10 10
37 -35 -33 30
-8 -4
-16 -19 -35 30
40 37 -3 -17
-12 -15 -4 14
26 4
19 13 -3 38
33 -2 0 -40
19 31 12 -20
10 -10
17 -7 -34 -3
-25 34 -15 10
15 37 -38 38
14 7
-29 -7 -24 11
-26 19 -20 38
-19 -34 -6 6
34 36
-29 31 17 -38
-6 -32 -24 34
-31 -14 21 -8
9 -23
10 3 -33 14
-23 ...

output:

-9.545669187 8.839872213
-3.614552909 -14.289659252
15.694016888 -44.233300134
-39.805392938 -11.444156245
2.920865041 26.581086460
-47.884300342 -14.762837362
17.863090701 19.018154068
-22.055401621 13.342283950
-2.832951044 -19.908716314
-17.402926887 -32.875511895
-42.439084214 159.962551047
38.0...

result:

ok 200000 numbers

Test #24:

score: 0
Accepted
time: 156ms
memory: 3972kb

input:

100000
-32 -37 -23 -22
43 34 -4 41
-50 -18 30 41
43 47
-39 -20 49 -5
-20 -35 9 18
-16 1 48 -39
-41 -7
-31 -34 49 -34
-27 39 -46 17
-1 -34 -39 -47
-49 6
-45 -3 -47 -3
-23 -44 46 29
40 -21 19 33
-9 -2
39 43 -4 22
-45 29 -7 -14
-41 38 -1 -38
-49 -20
28 -30 8 -11
43 -30 -30 -6
-8 30 22 19
13 -4
37 -15 -...

output:

-3.243656495 40.847811543
55.383126307 -15.538049478
-31.105236001 40.339336775
12.048814896 16.928562874
-4.955719350 7.709238580
29.263242850 10.149471027
-55.597351688 20.698805760
103.562192471 30.609863828
-1.882649688 -17.489282679
14.236629659 38.399104545
23.016709686 -38.629291050
23.834618...

result:

ok 200000 numbers

Test #25:

score: 0
Accepted
time: 159ms
memory: 3812kb

input:

100000
22 -47 -50 24
-39 -52 -47 -34
-30 -15 -22 -12
-46 26
-5 -60 -25 -32
-48 -29 -1 10
30 15 -12 -37
44 -19
-28 3 -17 42
-39 -21 -56 22
15 36 30 53
-49 40
-44 -43 13 18
-43 -48 49 -47
-14 -9 -59 -53
-10 24
-17 59 29 -50
-34 -27 9 -50
57 54 21 31
6 -37
-44 22 -37 -11
47 9 -44 -39
28 50 47 16
40 23
...

output:

-34.213243915 -5.782318919
-15.586300567 -36.799555686
-3.643892439 81.546712758
-52.471115656 -53.058948272
2.144939871 -50.464418851
-34.243961373 -50.809903563
-41.999125172 -47.000178287
-38.596391988 46.392026934
-16.183228555 0.936177074
20.188245602 30.141427375
24.071962906 0.802826050
8.333...

result:

ok 200000 numbers

Test #26:

score: 0
Accepted
time: 187ms
memory: 3840kb

input:

100000
43 -29 -20 -44
27 -41 -50 52
42 24 -22 12
60 -42
15 60 25 -40
7 -67 44 65
59 59 -37 10
-59 46
-60 -13 -63 -67
16 -20 -68 -28
-58 39 -21 19
-38 -42
20 -45 -33 17
60 -36 62 -67
-11 -63 -12 -17
-24 55
14 38 -5 -15
61 34 -45 36
5 -54 -66 50
1 7
59 15 42 -56
-47 4 13 56
54 -38 62 -41
-27 -3
15 -28...

output:

8.032415711 14.368698464
111.963039644 29.391042314
-65.721992976 -42.751284027
-11.272521974 -43.569258359
-78.248673990 88.793879001
65.627423004 144.607760793
13.686428555 -47.286812197
-95.714544566 -25.823825404
-85.197859210 -76.408063079
-24.242076474 40.307898951
-45.015625177 3.198419012
-1...

result:

ok 200000 numbers

Test #27:

score: 0
Accepted
time: 167ms
memory: 3816kb

input:

100000
-62 -2 80 21
8 -52 -41 -9
-23 18 59 -36
80 64
45 65 -5 -60
-34 -15 -60 -22
9 -10 42 53
5 71
59 7 11 37
-58 12 35 -15
-45 -63 58 -80
62 -27
36 65 61 -38
73 -64 13 79
-9 -24 -71 -30
59 52
59 -16 -29 -75
-17 21 32 60
-51 36 22 -69
66 -63
56 -75 -75 70
-34 -13 -55 8
-11 -24 -70 5
-19 -73
22 -47 5...

output:

20.142486020 -154.515075378
-16.367894905 -67.406210151
-0.039588386 58.964189432
81.959084472 -24.795654092
-23.817256615 -80.228643101
-65.553151010 31.215000981
-35.054591061 -14.901894630
76.942603158 39.189485899
433.528383100 107.786356612
5.545676942 60.864065541
25.244188090 -60.560658354
61...

result:

ok 200000 numbers

Test #28:

score: 0
Accepted
time: 185ms
memory: 4032kb

input:

100000
-88 -48 -22 59
-77 74 -11 44
-88 -47 -90 -14
81 -79
57 23 -90 -55
18 61 -34 54
76 68 -37 33
-82 11
-5 37 -27 -86
-71 -53 74 15
-21 47 74 -83
-46 12
-30 -58 6 2
-28 2 -33 7
-22 -80 -84 -61
6 24
-19 -69 -87 34
54 82 66 48
-39 -63 -41 -29
-25 -89
47 47 16 21
88 -39 41 -24
86 -31 -69 -15
-67 47
-...

output:

-10.991303614 44.190782397
-17.671897291 47.960183681
64.304569876 -11.274234066
-37.320488021 7.507647257
-32.948478335 34.350073897
18.390285914 20.187385050
13.433640327 -87.900207054
61.297741791 -58.123133748
-74.529596004 3.870942131
-53.057395492 54.181540848
-87.764842821 -16.702486038
-57.9...

result:

ok 200000 numbers

Test #29:

score: 0
Accepted
time: 180ms
memory: 4028kb

input:

100000
53 7 91 -58
86 -8 -4 -97
4 45 -61 82
-84 57
87 -48 -23 92
98 27 19 18
-51 -65 -76 -61
-64 -43
-42 42 -29 -59
-82 29 94 68
90 -79 22 -82
-54 -8
69 -61 -7 -64
25 26 -17 -18
35 48 15 -36
41 91
-85 7 -29 27
95 6 32 -85
88 44 75 -83
67 55
81 27 5 -26
2 -9 67 71
-12 88 -47 35
45 -95
8 45 15 -20
57 ...

output:

-69.749776229 10.295118161
-59.246613926 -64.094758211
19.046431433 -138.394730436
17.108908246 -57.883258098
89.560382721 -52.902563183
23.049497386 22.109587389
23.242666661 -23.875987346
15.934524220 31.513332222
-73.697689246 -2.986412495
62.524344979 -24.100648650
-12.750200429 42.197941244
-94...

result:

ok 200000 numbers