QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#51240#4633. Coprime MatricesZhaoZiLongTL 3ms3716kbC++111.1kb2022-10-01 15:13:382022-10-01 15:13:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

input:

1 1 1 1 1

output:

Yes
1

result:

ok OK, Accepted.

Test #3:

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

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

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: 3640kb

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: