QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#548830#6620. Linear Fractional TransformationZhangYiDeWA 130ms4020kbC++201.0kb2024-09-05 21:21:312024-09-05 21:21:32

详细

Test #1:

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

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: -100
Wrong Answer
time: 130ms
memory: 4020kb

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.00000000000000022204 1.00000000000000000000
-1.50000000000000000000 -0.50000000000000000000
0.33333333333333337034 -0.66666666666666685170
-0.38461538461538463674 -0.92307692307692301714
-0.99999999999999966693 -0.00000000000000045797
-1.5000000000000...

result:

wrong output format Expected double, but "-nan" found