QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#51228#4633. Coprime MatricesHuangHanShengWA 2ms3808kbC++111.1kb2022-10-01 14:51:482022-10-01 14:51:52

详细

Test #1:

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

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: 2ms
memory: 3676kb

input:

1 1 1 1 1

output:

Yes
1

result:

ok OK, Accepted.

Test #3:

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

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: 0ms
memory: 3696kb

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: 2ms
memory: 3708kb

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
Wrong Answer
time: 2ms
memory: 3808kb

input:

8 8 7 3 56

output:

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

result:

wrong answer Co-prime Unsatisfied