QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#842043#9968. Just Zerosucup-team4778#WA 17ms3580kbC++141.2kb2025-01-04 09:50:072025-01-04 09:50:08

详细

Test #1:

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

input:

3 4 6
1010
1101
0010
R 2
P 3 1
K 2
P 2 1
K 4
P 3 4

output:

3
2
3
4
3
3
4

result:

ok 7 numbers

Test #2:

score: 0
Accepted
time: 13ms
memory: 3580kb

input:

3 4 100000
0100
0011
0011
R 3
K 1
R 2
K 4
R 3
K 2
P 1 1
K 1
R 1
P 1 4
K 4
K 1
K 4
R 3
K 2
K 2
R 1
K 1
K 4
P 3 2
P 2 1
K 1
R 1
P 3 1
R 3
K 3
P 3 2
P 1 3
K 1
R 1
P 1 1
R 1
P 2 1
R 3
P 3 1
R 2
K 2
R 1
R 1
R 3
P 1 3
R 3
K 3
R 2
R 1
P 3 4
K 1
K 1
P 1 4
R 3
K 1
P 1 2
R 1
K 3
P 2 2
R 1
P 1 1
K 4
R 2
P 3 4
...

output:

4
4
3
2
3
4
3
2
3
3
4
4
3
4
3
4
3
2
3
2
3
4
3
4
4
5
5
5
4
3
4
4
4
5
4
3
4
4
3
4
3
3
4
5
4
4
5
4
5
4
4
4
4
5
5
4
4
3
4
5
4
3
4
4
5
4
5
4
5
4
4
5
5
4
5
5
4
4
4
3
4
3
2
3
4
4
3
4
4
3
3
4
3
4
4
3
4
3
2
3
2
3
2
3
4
3
2
3
4
4
3
4
5
5
5
5
4
4
4
5
4
4
4
5
5
5
4
3
4
3
4
4
5
4
5
5
5
4
3
4
4
5
4
5
4
5
4
3
4
4
...

result:

ok 100001 numbers

Test #3:

score: -100
Wrong Answer
time: 17ms
memory: 3512kb

input:

4 3 100000
110
110
010
000
K 2
K 3
K 2
R 4
P 3 3
K 3
K 2
R 4
R 2
R 1
P 3 2
R 3
K 1
K 1
R 1
K 3
P 1 3
R 2
K 2
K 3
R 3
P 4 1
K 2
P 1 1
R 3
R 1
R 3
K 3
K 1
K 3
R 3
R 1
K 1
P 2 2
P 2 3
K 2
K 3
K 3
K 3
K 3
P 2 2
R 3
R 4
R 1
P 4 1
P 2 2
K 1
K 1
R 3
K 2
R 4
K 2
R 1
R 4
R 4
K 1
P 4 2
R 3
K 3
R 2
R 1
K 1
K 1...

output:

4
2
4
4
4
4
5
4
3
4
4
4
4
2
4
3
4
4
4
4
5
4
4
4
4
3
3
4
4
4
2
1
2
3
4
3
5
3
5
3
5
5
4
5
4
4
5
4
5
5
5
4
4
5
6
5
3
3
4
3
4
3
4
3
4
5
5
5
4
3
4
4
5
4
3
5
3
5
4
4
3
2
3
4
3
2
3
4
4
5
5
4
5
4
3
4
3
4
3
4
5
4
3
4
5
5
5
5
5
4
5
4
5
4
3
4
5
4
3
4
3
4
3
2
3
2
3
2
3
2
3
2
3
4
4
3
3
2
3
3
3
3
2
3
2
3
4
4
4
4
...

result:

wrong answer 2nd numbers differ - expected: '3', found: '2'