QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#107928#2829. CryptographyZhaoZiLongTL 2ms5556kbC++14623b2023-05-23 10:00:112023-05-23 10:00:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 5556kb

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

input:

1 1
0 0
0 0
0 0
0 0

output:

0 0

result:

ok single line: '0 0'

Test #3:

score: -100
Time Limit Exceeded

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:

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

result: