QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#444154#8473. Matrices and Determinantsucup-team3539#AC ✓9ms4016kbC++239.5kb2024-06-15 17:33:022024-06-15 17:33:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 9ms
memory: 3732kb

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 7 154 7 
0 0 1 0 
0 0 1 -10 
8 -7 -154 9 
1 -7 10 0 
0 -7 231 0 
0 0 -10 0 
0 0 0 1 
No
No
No
Yes
-2 9 40 
0 10 60 
1 -1 0 
-5 0 28 
0 1 24 
0 0 -4 
No
No
No
Yes
0 9 18 
0 5 9 
1 -3 0 
-3 0 -20 
0 1 -6 
0 0 3 
No
Yes
5 10 40 
7 15 60 
4 8 30 
-1 4 12 
0 -2 14 
0 0 -5 
No
No
No
Yes
1 -7 ...

result:

ok OK, Accepted. (10000 test cases)

Test #3:

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

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 0 20 
2 -1 10 
1 0 -20 
0 -1 10 
0 0 5 
No
No
No
Yes
0 7 6 3 
0 0 0 9 
0 0 1 0 
1 8 0 -2 
7 0 -55 0 
0 1 8 0 
0 0 -9 0 
0 0 0 -1 
No
No
No
Yes
1 -1 
0 9 
9 0 
0 1 
No
No
No
No
No
Yes
7 6 24 
3 3 12 
4 4 12 
1 -6 12 
0 6 -6 
0 0 -2 
No
Yes
0 0 0 1 
-3 0 105 4 
1 4 0 -3 
0 7 63 1 
-3 0 2...

result:

ok OK, Accepted. (10000 test cases)

Test #4:

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

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 3 
0 10 
-10 0 
0 -1 
No
No
No
No
No
Yes
1 -7 
0 3 
3 0 
0 1 
No
Yes
1 8 
0 10 
10 0 
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 -2 
0 0 5 
-5 2 -2 
-2 2 0 
0 5 0 
0 0 1 
No
No
No
No
No
Yes
2 6 
3 6 
3 6 
0 -2 
No
No
No
Yes
0 0 6 -12 
0 5 9 -114 
1...

result:

ok OK, Accepted. (10000 test cases)

Test #5:

score: 0
Accepted
time: 9ms
memory: 4016kb

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 3 -1 
7 -3 8 
0 0 6 
1 9 0 
0 18 0 
0 0 -1 
No
Yes
0 0 0 4 
9 -10 15 -7 
1 0 0 -3 
-8 7 -10 5 
1 0 0 0 
0 1 30 0 
0 0 20 0 
0 0 0 -1 
No
Yes
7 14 0 
10 21 -1 
1 2 1 
1 -14 0 
0 7 0 
0 0 1 
No
Yes
1 0 0 
0 4 -4 
0 0 5 
-10 1 0 
0 -2 0 
0 0 1 
N...

result:

ok OK, Accepted. (10000 test cases)

Test #6:

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

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 33 
-5 -12 -66 
4 8 46 
2 4 -7 
0 -2 -13 
0 0 3 
No
Yes
1 0 0 -10 
10 0 1 10 
-6 1 0 -6 
10 0 0 0 
1 0 0 0 
0 -10 1 0 
0 0 -10 0 
0 0 0 -1 
No
Yes
0 7 0 21 
1 7 0 0 
5 7 10 -72 
0 2 0 7 
-2 0 -10 146 
0 1 0 -21 
0 0 5 -8 
0 0 0 7 
No
Yes
3 
3 
No
Yes
1 0 -3 7 
10 1 4 3 
0 0 1 0 
0 0 -3 10 
1...

result:

ok OK, Accepted. (10000 test cases)

Test #7:

score: 0
Accepted
time: 9ms
memory: 3752kb

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 4 
4 9 -16 
1 0 0 
0 1 -8 
0 0 -4 
No
No
No
No
No
Yes
0 0 0 10 
1 -2 0 -1 
0 0 1 0 
0 7 8 -7 
-7 0 -33 0 
0 -1 -12 0 
0 0 10 0 
0 0 0 1 
No
Yes
3 
3 
No
Yes
1 5 
0 4 
4 0 
0 1 
No
No
No
Yes
3 10 -90 -8 
-2 1 90 9...

result:

ok OK, Accepted. (10000 test cases)

Test #8:

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

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 6 
-8 7 -756 
3 8 252 
-1 0 552 
0 -1 -18 
0 0 -6 
No
Yes
9 0 8 112 
2 0 2 28 
1 0 5 56 
7 1 0 0 
-1 0 2 7 
0 7 -5 -48 
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 44 560 
7 -33 -420 
0 2 28 
-1 -20 43 
0 -4 98 
0 0 -7 
No
No
No
No
No
No
No
...

result:

ok OK, Accepted. (10000 test cases)

Test #9:

score: 0
Accepted
time: 9ms
memory: 3748kb

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 -90 
0 -10 30 
0 7 -20 
3 0 270 
0 -1 30 
0 0 10 
No
Yes
2 7 65 
0 -10 -20 
0 2 5 
4 0 130 
0 1 10 
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 -8 -180 
1 2 2 0 
0 5 -3 -360 
0 0 -5 30 
-10 0 0 498 
0 1 0 -228 
0 0 -1 -18 
0 0 0 -3 
No
No
No
Yes
1 -10 
0 8 
-8 0...

result:

ok OK, Accepted. (10000 test cases)

Test #10:

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

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 -4 -6 
-3 10 6 
0 1 0 
2 0 -6 
0 1 0 
0 0 -3 
No
No
No
Yes
9 -2 -2 
0 0 10 
-8 2 -9 
1 5 0 
0 20 0 
0 0 -1 
No
Yes
4 15 -5 -4 
5 15 -5 10 
-2 -6 2 0 
-4 -17 6 0 
-2 6 -1 0 
0 -2 2 0 
0 0 5 0 
0 0 0 1 
No
Yes
0 0 9 2 
1 0 -4 6 
0 0 0 3 
9 1 0 -9 
-1 -3 0 0 
0 27 0 0 
0 0 -1 0 
0 0 0 -1 
No
Yes
...

result:

ok OK, Accepted. (10000 test cases)