QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#637580#6620. Linear Fractional Transformationucup-team1259#WA 152ms3972kbC++20641b2024-10-13 13:25:282024-10-13 13:25:34

详细

Test #1:

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

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

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
-nan -nan
-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.333333333
1.00000000...

result:

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