QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#446129#8473. Matrices and DeterminantsQiulyAC ✓12ms2016kbC++173.0kb2024-06-16 22:13:572024-06-16 22:13:58

詳細信息

Test #1:

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

input:

3
2
2 0
0 2
2
2 1
1 2
1
1

output:

Yes
1 0
0 2
2 0
0 1
No
Yes
1
1

result:

ok OK, Accepted. (3 test cases)

Test #2:

score: 0
Accepted
time: 12ms
memory: 1980kb

input:

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

output:

No
No
Yes
-7 -56 -1400 -13048
0 0 -1 -10
0 0 -1 -20
8 63 1575 14679
1 -56 87 135
0 7 -261 0
0 0 10 -10
0 0 0 1
No
No
No
Yes
-2 -21 -540
0 -10 -260
1 7 180
-5 6 12
0 -1 -104
0 0 4
No
No
No
Yes
0 9 -18
0 5 -9
1 -9 18
-3 6 -2
0 1 -6
0 0 -3
No
Yes
5 10 60
7 15 90
4 8 50
-1 4 12
0 -2 -36
0 0 5
No
No
No
Y...

result:

ok OK, Accepted. (10000 test cases)

Test #3:

score: 0
Accepted
time: 8ms
memory: 1944kb

input:

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

output:

Yes
0 -3 -5
5 25 45
2 11 20
1 -5 5
0 1 -10
0 0 5
No
No
No
Yes
0 -7 6 -3
0 0 0 -9
0 0 1 0
1 7 -6 3
7 15 11 -1
0 -1 -8 0
0 0 -9 0
0 0 0 1
No
No
No
Yes
1 0
0 9
9 -1
0 1
No
No
No
No
No
Yes
7 6 48
3 3 24
4 4 36
1 -6 12
0 6 -30
0 0 2
No
Yes
0 0 0 -1
-3 -48 420 -655
1 12 -105 164
0 -7 63 -99
-3 -16 -28 -7
...

result:

ok OK, Accepted. (10000 test cases)

Test #4:

score: 0
Accepted
time: 12ms
memory: 1940kb

input:

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

output:

No
No
No
No
Yes
1 0
0 10
-10 -3
0 -1
No
No
No
No
No
Yes
1 0
0 3
3 -7
0 1
No
Yes
1 0
0 10
10 8
0 1
No
Yes
3 7
0 1
3 0
0 1
No
No
No
Yes
8 8
7 8
1 -8
0 8
No
Yes
1 0 0
0 0 -5
-5 2 12
-2 2 -2
0 5 0
0 0 -1
No
No
No
No
No
Yes
2 6
3 12
3 -6
0 2
No
No
No
Yes
0 0 -6 -12
0 5 -9 -114
1 0 6 12
0 10 5 -180
-10 -2...

result:

ok OK, Accepted. (10000 test cases)

Test #5:

score: 0
Accepted
time: 12ms
memory: 1996kb

input:

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

output:

Yes
1 0 0
0 2 0
1 2 3
1 -1 0
0 2 0
0 0 3
No
Yes
-6 -21 287
7 24 -328
0 0 6
1 63 -48
0 -18 0
0 0 -1
No
Yes
0 0 0 -4
9 80 -120 -7564
1 10 -15 -946
-8 -73 110 6908
1 -10 0 -21
0 1 30 97
0 0 20 0
0 0 0 1
No
Yes
7 14 42
10 21 63
1 2 7
1 -14 2
0 7 -4
0 0 1
No
Yes
1 0 0
0 4 -4
0 0 5
-10 1 0
0 -2 0
0 0 1
No...

result:

ok OK, Accepted. (10000 test cases)

Test #6:

score: 0
Accepted
time: 12ms
memory: 2000kb

input:

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

output:

Yes
3 6 -69
-5 -12 138
4 8 -94
2 4 -7
0 -2 -31
0 0 -3
No
Yes
1 0 0 0
10 0 -1 0
-6 1 1 0
10 0 0 100
1 0 0 10
0 -10 -9 -44
0 0 10 110
0 0 0 -1
No
Yes
0 -7 0 21
1 7 0 -21
5 63 10 -177
0 -2 0 7
-2 14 -10 -1
0 -1 0 21
0 0 5 -8
0 0 0 7
No
Yes
3
3
No
Yes
1 0 0 0
10 1 0 0
0 0 1 0
0 0 -3 10
1 0 -3 -7
0 -10 3...

result:

ok OK, Accepted. (10000 test cases)

Test #7:

score: 0
Accepted
time: 12ms
memory: 2016kb

input:

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

output:

Yes
7 28 -182
10 42 -273
8 32 -207
1 -8 -10
0 2 48
0 0 7
No
No
No
Yes
1 0 0
0 -2 -12
4 9 52
1 0 0
0 1 -24
0 0 4
No
No
No
No
No
Yes
0 0 0 10
1 0 0 -10
0 0 1 0
0 7 8 -7
-7 2 -9 9
0 -1 -12 0
0 0 10 0
0 0 0 1
No
Yes
3
3
No
Yes
1 0
0 4
4 5
0 1
No
No
No
Yes
-3 43 219 -686
2 -21 -107 336
9 -99 -504 1582
1 ...

result:

ok OK, Accepted. (10000 test cases)

Test #8:

score: 0
Accepted
time: 12ms
memory: 1952kb

input:

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

output:

Yes
0 2 18
-8 -871 -7806
3 316 2832
-1 -108 -24
0 1 54
0 0 -6
No
Yes
9 0 8 -112
2 0 2 -28
1 0 5 -56
7 1 -2 28
-1 0 2 7
0 7 -9 -62
0 0 -2 21
0 0 0 2
No
Yes
3 9
2 9
-3 9
0 -3
No
Yes
3
3
No
No
No
No
No
No
No
No
Yes
-9 -143 1820
7 110 -1400
0 -2 28
-1 -64 141
0 4 -98
0 0 -7
No
No
No
No
No
No
No
No
Yes
3...

result:

ok OK, Accepted. (10000 test cases)

Test #9:

score: 0
Accepted
time: 12ms
memory: 1952kb

input:

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

output:

Yes
3 3 390
0 -10 -130
0 7 90
3 0 1170
0 -1 130
0 0 -10
No
Yes
2 7 -415
0 -10 120
0 2 -25
4 0 830
0 1 60
0 0 5
No
No
No
Yes
2
2
No
No
No
No
No
No
No
No
No
No
No
No
No
Yes
0 -3 31 -180
1 3 -31 180
0 -5 62 -360
0 0 -5 30
-10 5 6 6
0 -1 -13 -6
0 0 -1 -18
0 0 0 -3
No
No
No
Yes
1 0
0 8
-8 10
0 -1
No
No
N...

result:

ok OK, Accepted. (10000 test cases)

Test #10:

score: 0
Accepted
time: 8ms
memory: 2012kb

input:

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

output:

Yes
4 -28 -162
-3 28 162
0 1 6
2 6 -6
0 1 -18
0 0 3
No
No
No
Yes
9 -2 -97
0 0 -10
-8 2 97
1 5 11
0 20 0
0 0 1
No
Yes
4 -45 -30 -180
5 -60 -40 -240
-2 24 16 100
-4 43 29 580
-2 -24 4 -46
0 -2 -3 832
0 0 5 -1260
0 0 0 1
No
Yes
0 0 9 -2
1 0 -9 2
0 0 0 -3
9 1 9 -2
-1 -3 -5 -8
0 27 54 83
0 0 -1 0
0 0 0 1...

result:

ok OK, Accepted. (10000 test cases)