QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#842740#9968. Just Zerosucup-team3727#WA 22ms3788kbC++204.2kb2025-01-04 14:27:242025-01-04 14:27:24

详细

Test #1:

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

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

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: 22ms
memory: 3724kb

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:

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

result:

wrong answer 1st numbers differ - expected: '4', found: '5'