QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#51270#4633. Coprime MatricesMaMengQiTL 3ms3748kbC++171.4kb2022-10-01 16:33:332022-10-01 16:33:36

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 3748kb

input:

3 3 2 1 3

output:

Yes
1 2 4
3 5 6
8 9 7

result:

ok OK, Accepted.

Test #2:

score: 0
Accepted
time: 3ms
memory: 3708kb

input:

1 1 1 1 1

output:

Yes
1

result:

ok OK, Accepted.

Test #3:

score: 0
Accepted
time: 3ms
memory: 3700kb

input:

8 3 4 2 9

output:

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

result:

ok OK, Accepted.

Test #4:

score: 0
Accepted
time: 3ms
memory: 3716kb

input:

7 6 7 2 28

output:

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

result:

ok OK, Accepted.

Test #5:

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

input:

6 8 1 2 7

output:

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

result:

ok OK, Accepted.

Test #6:

score: -100
Time Limit Exceeded

input:

8 8 7 3 56

output:


result: