QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#51245#4633. Coprime MatricesMaMengQiWA 11ms27184kbC++111.8kb2022-10-01 15:33:092022-10-01 15:33:10

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 10ms
memory: 27056kb

input:

3 3 2 1 3

output:

Yes
2 7 8
3 4 9
1 5 6

result:

ok OK, Accepted.

Test #2:

score: 0
Accepted
time: 2ms
memory: 27184kb

input:

1 1 1 1 1

output:

Yes
1

result:

ok OK, Accepted.

Test #3:

score: 0
Accepted
time: 2ms
memory: 27032kb

input:

8 3 4 2 9

output:

Yes
13 19 20
14 15 21
8 16 17
7 9 18
22 10 11
23 24 12
4 1 2
5 6 3

result:

ok OK, Accepted.

Test #4:

score: 0
Accepted
time: 7ms
memory: 27084kb

input:

7 6 7 2 28

output:

Yes
30 42 1 9 10 14
31 32 2 3 11 12
15 33 34 4 5 13
16 17 35 36 6 7
27 18 19 37 38 8
26 25 20 21 39 40
24 28 29 22 23 41

result:

ok OK, Accepted.

Test #5:

score: 0
Accepted
time: 4ms
memory: 27140kb

input:

6 8 1 2 7

output:

Yes
19 7 8 30 31 39 40 44
20 21 9 10 32 33 41 42
45 22 23 11 12 34 35 43
46 47 24 25 13 14 36 37
4 48 1 26 27 15 16 38
5 6 2 3 28 29 17 18

result:

ok OK, Accepted.

Test #6:

score: 0
Accepted
time: 2ms
memory: 27152kb

input:

8 8 7 3 56

output:

Yes
59 10 11 23 24 32 33 37
60 61 12 13 25 26 34 35
38 62 63 14 15 27 28 36
39 40 64 1 16 17 29 30
55 41 42 2 3 18 19 31
54 53 43 44 4 5 20 21
49 52 56 45 46 6 7 22
50 51 57 58 47 48 8 9

result:

ok OK, Accepted.

Test #7:

score: 0
Accepted
time: 7ms
memory: 26972kb

input:

2 4 2 1 8

output:

Yes
7 2 3 6
8 1 4 5

result:

ok OK, Accepted.

Test #8:

score: 0
Accepted
time: 11ms
memory: 27184kb

input:

6 6 4 2 17

output:

Yes
22 33 34 6 7 11
23 24 35 36 8 9
16 25 26 1 2 10
15 17 27 28 3 4
12 18 19 29 30 5
13 14 20 21 31 32

result:

ok OK, Accepted.

Test #9:

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

input:

8 6 3 1 33

output:

Yes
44 8 9 17 18 22
45 46 10 11 19 20
33 47 48 12 13 21
34 35 1 2 14 15
23 36 37 3 4 16
24 25 38 39 5 6
30 26 27 40 41 7
31 32 28 29 42 43

result:

ok OK, Accepted.

Test #10:

score: -100
Wrong Answer
time: 2ms
memory: 27064kb

input:

2 8 2 4 15

output:

Yes
16 14 13 3 4 7 8 11
1 2 12 15 5 6 9 10

result:

wrong answer Co-prime Unsatisfied