QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#548822#6620. Linear Fractional TransformationMaMengQiWA 131ms4012kbC++231.5kb2024-09-05 21:14:532024-09-05 21:14:53

详细

Test #1:

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

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.000000000000000 0.000000000000000
-0.000000000000000 1.000000000000000

result:

ok 4 numbers

Test #2:

score: -100
Wrong Answer
time: 131ms
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.000000000000000 1.666666666666667
-1.000000000000000 1.000000000000000
-1.500000000000000 -0.500000000000000
0.333333333333333 -0.666666666666667
-0.384615384615385 -0.923076923076923
-1.000000000000000 -0.000000000000000
-1.500000000000000 0.500000000000000
-0.853658536585366 -0.317073170731707
-...

result:

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