QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#291419#4633. Coprime Matriceshouzhiyuan#WA 1ms3820kbC++141.4kb2023-12-26 15:40:022023-12-26 15:40:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3536kb

input:

3 3 2 1 3

output:

Yes
2 5 6
3 4 7
8 9 1

result:

ok OK, Accepted.

Test #2:

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

input:

1 1 1 1 1

output:

Yes
1

result:

ok OK, Accepted.

Test #3:

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

input:

8 3 4 2 9

output:

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

result:

ok OK, Accepted.

Test #4:

score: -100
Wrong Answer
time: 0ms
memory: 3536kb

input:

7 6 7 2 28

output:

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

result:

wrong answer Integer parameter [name=A[i][j]] equals to 0, violates the range [1, 42]