QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#548837#6620. Linear Fractional TransformationZhangYiDeAC ✓174ms4032kbC++201.0kb2024-09-05 21:25:432024-09-05 21:25:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 4004kb

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.00000000000000000000 0.00000000000000000000
-0.00000000000000000000 1.00000000000000000000

result:

ok 4 numbers

Test #2:

score: 0
Accepted
time: 125ms
memory: 4012kb

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.00000000000000000000 1.66666666666666674068
-1.00000000000000000000 1.00000000000000000000
-1.50000000000000000000 -0.50000000000000000000
0.33333333333333331483 -0.66666666666666662966
-0.38461538461538463674 -0.92307692307692312816
-1.00000000000000000000 -0.00000000000000000000
-1.5000000000000...

result:

ok 200000 numbers

Test #3:

score: 0
Accepted
time: 130ms
memory: 3924kb

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.26872770511296073526 -0.98216409036860874426
-0.55731593662628142738 -2.69058713886300093776
-0.60355029585798813940 -1.24852071005917153457
-0.16216216216216214341 0.97297297297297302698
-2.23076923076923128164 -0.84615384615384614531
0.52941176470588235947 0.88235294117647056211
-1.999999999999...

result:

ok 200000 numbers

Test #4:

score: 0
Accepted
time: 130ms
memory: 3884kb

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.31351351351351319785 2.31891891891891877009
11.33333333333333392545 -22.33333333333333214910
3.04126074498567344762 -1.18853868194842404726
-1.41176470588235303261 -2.64705882352941168634
1.03159622486663926644 1.57529749692244536163
-3.66666666666666651864 2.00000000000000000000
1.333333333333333...

result:

ok 200000 numbers

Test #5:

score: 0
Accepted
time: 127ms
memory: 3788kb

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.00000000000000000000 -4.00000000000000000000
2.47239976757699064791 1.44509006391632777166
-1.85099230018436178291 -0.27459060839388355069
-8.80829848825989181194 4.63300096494049551410
-1.17197452229299359239 2.81528662420382147502
2.78571428571428558740 -2.85714285714285720630
0.052451539338654...

result:

ok 200000 numbers

Test #6:

score: 0
Accepted
time: 115ms
memory: 3792kb

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.81635469679979277835 -4.94582937979815451257
0.94612707153618369471 -1.11647358304327504186
-1.54249367767645040317 4.47382941221549579325
1.57754010695187174562 4.40106951871657781084
4.03028503562945417116 5.62173396674584324728
-1.92571603614642383739 -3.67024046561494898810
-2.0893365787974520...

result:

ok 200000 numbers

Test #7:

score: 0
Accepted
time: 124ms
memory: 3788kb

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.30990685859441136074 -3.30736663844199796358
3.36572644704894941015 3.64266658673301169102
-3.79557295880392198129 -2.48742759134008606381
1.75083674228337682344 0.54444031238378587378
-2.14961084678639169354 -0.90764830450207645285
0.87260087653014972719 -1.88363306634426486141
6.092863541355629...

result:

ok 200000 numbers

Test #8:

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

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.13142257951765135005 2.03005941978329262909
-3.89387008234217724123 0.75114364135407141188
-2.39847046773642924578 1.63736428815295331773
-6.13958980733374737326 -1.60546923555003107076
1.86640471512770078633 -5.21218074656188523619
-1.80155009688105516297 6.41008813050815717816
0.592365006152382...

result:

ok 200000 numbers

Test #9:

score: 0
Accepted
time: 126ms
memory: 3788kb

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.12052450478936116429 3.03450199944201592928
-4.00590774078146250048 5.58420992172243391138
-8.42993482572966890132 -5.98733918957211663781
4.60229260486061964031 -0.54285607949681780049
3.46470588235294085777 -2.04117647058823514783
0.63007289586405945681 5.11222293573449793058
-5.269035532994923...

result:

ok 200000 numbers

Test #10:

score: 0
Accepted
time: 123ms
memory: 3784kb

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.94080567148020743939 5.36353000750842490163
-0.42708940435948244962 -3.36531064226599774258
6.20531760979453217431 -8.46366247050348086134
6.15888954518606013266 -2.38216184288245713674
-1.62958241276470583436 11.37192318563855231162
-9.70590150884683744437 3.35329449650830380136
9.20907541230482...

result:

ok 200000 numbers

Test #11:

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

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.39793200052938360045 -4.72558582617116140767
-4.61093513961307888138 -0.75361824472491600879
1.81397172811441120821 -2.47352038284079123187
8.03227011279599523164 -10.88070516172405888256
0.66822586034079511919 -4.39692616104243239050
3.42676568368282596921 -9.99629148828089775236
2.38695539485697...

result:

ok 200000 numbers

Test #12:

score: 0
Accepted
time: 134ms
memory: 3800kb

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.64156296481444208268 -7.83937078209703752663
-0.61230338318850441315 -0.74383794458470886557
8.61178677466240927174 -1.48564542777991714928
5.12488937634733954241 3.04888619946295547081
-7.68253431672550046727 -0.43041461566398458993
2.66317295534704179261 -7.11688959872229975900
-8.1164464773221...

result:

ok 200000 numbers

Test #13:

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

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.01388213231894397381 14.48514104704495508713
8.76739306050262001690 2.10342885402131152262
-1.18656220185608130002 7.64471363728352937272
-3.76923076923076871836 -0.15384615384615382694
-9.16590018038505149889 7.09345780611801846050
-4.58389736333640929189 6.68528020464616634655
-5.56106194690265...

result:

ok 200000 numbers

Test #14:

score: 0
Accepted
time: 140ms
memory: 3820kb

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.33536087226320443477 5.11077973500413929031
14.80684555165165150470 74.78664462110022270735
-8.94942361456319446233 9.23586481847348217400
-6.69205624518795705313 -6.84370933682727144998
9.66667478238618116393 1.09787400020167713599
12.91026537010043817588 15.65943172061260746375
16.6450820832099...

result:

ok 200000 numbers

Test #15:

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

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.18792012640367228293 3.45598044124244907493
-13.75933844577163434053 -4.63363607449552894479
-3.46019159657619512771 4.18022612517800684628
-4.72610924195093939915 5.79997174239880930458
-4.27216360274121598195 -0.90438377025998040182
-7.72951829173099280723 0.01205571649117984437
-1.527735808331...

result:

ok 200000 numbers

Test #16:

score: 0
Accepted
time: 146ms
memory: 3916kb

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.42865801708309536622 -18.12699152986455430892
10.41961359765707406666 -2.04722535901151170279
-3.26370806330265095241 -0.66596376098381038222
13.83455770551187491435 3.17650467722285201333
0.81130172440301939751 -12.96203306671768906710
0.71728315857910018849 -3.84311179272018055286
3.435480587826...

result:

ok 200000 numbers

Test #17:

score: 0
Accepted
time: 150ms
memory: 3784kb

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.98272939699368766497 -15.50184494123391232279
-3.66519820944624274972 -3.78029564537016327108
-2.32786574158580661376 -1.04798841901897810125
11.30267793409933574367 7.15491952382048879144
-4.90914838362453220810 -16.27354370584592757609
9.00894541559513051254 8.25878016182806895529
4.06982424308...

result:

ok 200000 numbers

Test #18:

score: 0
Accepted
time: 149ms
memory: 3796kb

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.10062768636393393251 3.57386878352142156601
10.46127457439971841779 4.51865496634105845430
8.41756873217211953886 -6.27055653334951745848
-17.90743781984034299626 3.23265373057276983459
7.06069895121503066093 2.11841294873383167996
10.48334077776848438646 4.02330849679948610031
5.875137587829862...

result:

ok 200000 numbers

Test #19:

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

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.30620371157141734741 -2.91541757814414026484
-5.41026329505788616814 8.09031320581870971864
-13.03673049903538760930 6.64371881074959080848
0.96768418636676678535 29.46715630020656107035
4.31548053691684962985 0.25587637820692549218
14.43044707212519739414 2.66992926436707822546
16.57494832904858...

result:

ok 200000 numbers

Test #20:

score: 0
Accepted
time: 150ms
memory: 3728kb

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.69887326663381443836 -7.69353957463290161201
-12.20484814711618959393 -12.09874616884926368243
-12.96111701621284773012 13.92070409093734184580
11.85250238575364534199 7.53628065389027756993
-7.69687501481653679747 8.50912461536273312390
6.79805726026524581584 1.43269094879356373440
-11.9046248420...

result:

ok 200000 numbers

Test #21:

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

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.29882550168032828708 -6.95292289736444679704
-5.11284703080553004639 -2.08281329246510393816
14.18569771247624267119 -3.23690303916519717120
-9.06881051352888967187 -16.06523287938042443557
11.90892567660139178543 8.58814899773674511607
-15.21957022799024095150 9.76057654134110386224
-40.20879513...

result:

ok 200000 numbers

Test #22:

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

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.80105339941987008245 15.48667886615947431039
-3.12299668683702646987 31.51031117561101879687
3.70084075793700550960 -12.29865729702597398898
-25.84797109403841375297 -48.93520084131533565142
6.95007767267026999036 -23.06673798708273892544
-25.67268395317469042993 -9.19773725354673210575
-28.23074...

result:

ok 200000 numbers

Test #23:

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

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.54566918689294752198 8.83987221257756061732
-3.61455290901334125309 -14.28965925247330304160
15.69401688801657712702 -44.23330013425776741087
-39.80539293837532710540 -11.44415624468575387596
2.92086504137989244612 26.58108645971000782993
-47.88430034227002352054 -14.76283736217020070569
17.86309...

result:

ok 200000 numbers

Test #24:

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

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.24365649539205813667 40.84781154265778013723
55.38312630705151917709 -15.53804947789430279670
-31.10523600079145367658 40.33933677479330270899
12.04881489571449826315 16.92856287393479064463
-4.95571934975113848054 7.70923857975080473182
29.26324284955303767219 10.14947102695039760079
-55.5973516...

result:

ok 200000 numbers

Test #25:

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

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.21324391512739282462 -5.78231891872753056560
-15.58630056694415699781 -36.79955568575127955455
-3.64389243884442359800 81.54671275783907447021
-52.47111565594431681347 -53.05894827206812180975
2.14493987098412697279 -50.46441885118216674755
-34.24396137340470147592 -50.80990356271190933057
-41.9...

result:

ok 200000 numbers

Test #26:

score: 0
Accepted
time: 165ms
memory: 3780kb

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.03241571120048014620 14.36869846375445725073
111.96303964391829310898 29.39104231411336698443
-65.72199297554357144691 -42.75128402729811227800
-11.27252197377564613134 -43.56925835854777773193
-78.24867398984856947664 88.79387900070031491850
65.62742300383501969918 144.60776079334073074278
13.686...

result:

ok 200000 numbers

Test #27:

score: 0
Accepted
time: 168ms
memory: 3916kb

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.14248602034787083426 -154.51507537765942856822
-16.36789490525998758130 -67.40621015079281619364
-0.03958838621201951624 58.96418943195304507299
81.95908447182084444194 -24.79565409208335680091
-23.81725661469026533723 -80.22864310071629745380
-65.55315100958181062651 31.21500098093840236402
-35....

result:

ok 200000 numbers

Test #28:

score: 0
Accepted
time: 173ms
memory: 3876kb

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.99130361365886798808 44.19078239748570524625
-17.67189729080524074334 47.96018368113258389940
64.30456987615141883907 -11.27423406635761793382
-37.32048802132947429300 7.50764725679796907087
-32.94847833507074597037 34.35007389731605798033
18.39028591442215798679 20.18738505011450001803
13.43364...

result:

ok 200000 numbers

Test #29:

score: 0
Accepted
time: 174ms
memory: 3728kb

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.74977622870994764526 10.29511816106661292736
-59.24661392646557089847 -64.09475821139962192774
19.04643143337826671768 -138.39473043618355063700
17.10890824591387016085 -57.88325809815187739105
89.56038272140534672872 -52.90256318251432077204
23.04949738636246792112 22.10958738929990730071
23.24...

result:

ok 200000 numbers