QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#481229#9118. Flip or Notucup-team3811WA 0ms3884kbC++235.3kb2024-07-16 21:51:522024-07-16 21:51:52

详细

Test #1:

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

input:

5
00001
00111
3
1 2 3
2
3 5

output:

4
1001

result:

ok output is valid

Test #2:

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

input:

4
0110
1000
2
1 2
4
1 2 3 4

output:

-1

result:

ok output is valid

Test #3:

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

input:

1
0
1
1
1
1
1

output:

1
1

result:

ok output is valid

Test #4:

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

input:

8
11110000
10101011
6
2 3 5 6 7 8
3
4 7 8

output:

5
01110

result:

ok output is valid

Test #5:

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

input:

8
00010010
11000111
3
1 4 5
4
2 4 6 8

output:

-1

result:

ok output is valid

Test #6:

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

input:

8
00000111
10110100
6
3 4 5 6 7 8
4
1 3 7 8

output:

-1

result:

ok output is valid

Test #7:

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

input:

8
00101100
11100111
3
1 2 6
6
1 3 4 5 7 8

output:

8
10100111

result:

ok output is valid

Test #8:

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

input:

9
111001001
100001000
7
1 3 4 5 6 7 8
4
1 3 7 9

output:

2
01

result:

ok output is valid

Test #9:

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

input:

8
01100110
00000101
3
4 5 7
5
2 3 6 7 8

output:

-1

result:

wrong answer mismatched m: expected 13, found -1