QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#107970#2829. CryptographyMaMengQiWA 46ms3740kbC++20799b2023-05-23 11:58:132023-05-23 11:58:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2 2
0 1 2 3
1 2 3 0
2 3 0 1
0 1
2 3
1 1
0 0
0 0
0 0
0 0

output:

3 0
1 2
0 0

result:

ok 3 lines

Test #2:

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

input:

1 1
0 0
0 0
0 0
0 0

output:

0 0

result:

ok single line: '0 0'

Test #3:

score: 0
Accepted
time: 46ms
memory: 3596kb

input:

1 2
1 1
0 0
0 0
1 1
1 0
1 2
0 0
0 1
0 1
1 0
1 1
1 2
0 1
1 0
0 0
1 0
1 0
1 2
0 0
0 1
1 1
0 0
1 1
1 2
0 1
1 0
0 1
0 1
0 0
1 2
1 1
0 1
0 1
1 0
0 0
1 2
1 1
0 1
1 0
1 0
0 1
1 2
0 0
1 0
1 1
1 1
1 1
1 2
1 1
0 1
1 0
1 0
0 1
1 2
0 1
0 0
0 0
0 1
0 1
1 2
1 1
1 0
1 0
1 0
1 1
1 2
1 1
1 0
1 1
0 1
0 0
1 2
1 1
0 1
...

output:

0 1
1 1
1 0
0 1
0 0
0 0
1 1
0 1
1 0
1 1
0 0
1 0
1 1
1 0
0 0
0 0
1 1
1 0
1 0
1 0
1 0
0 1
1 1
0 0
0 1
0 1
1 0
1 1
0 1
1 0
0 1
0 1
1 0
0 1
1 1
1 1
0 0
0 1
0 1
1 0
1 1
1 0
0 1
1 1
0 1
0 0
1 1
0 1
1 1
0 1
0 0
0 1
1 1
0 0
0 0
1 1
0 0
1 1
1 1
0 1
0 1
0 0
1 1
1 1
0 1
1 0
0 0
1 1
1 0
1 1
1 0
0 1
0 1
1 0
1 1
...

result:

ok 100000 lines

Test #4:

score: -100
Wrong Answer
time: 39ms
memory: 3740kb

input:

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

output:

4 0
15 0
14 0
6 0
0 0
12 0
6 0
7 0
4 0
1 0
10 8
6 0
15 0
0 0
14 0
4 0
7 0
9 0
15 0
10 0
9 0
2 0
10 0
11 0
4 0
15 0
8 0
1 0
11 0
3 0
12 0
15 0
6 0
1 0
9 0
1 0
14 0
2 0
12 0
11 0
10 0
1 0
6 0
14 0
10 0
5 0
12 0
10 0
4 0
11 0
6 0
12 0
14 0
9 0
2 0
12 0
5 0
11 0
9 0
14 0
11 0
11 0
6 0
11 0
9 0
7 0
1 0
1...

result:

wrong answer 1st lines differ - expected: '12 15', found: '4 0'