논리식의 개수와 쿼리
Time Limit: 5 SecMemory Limit: 1024 MiB
Example Input 1
5
2 4
???
2 |
2 &
1 0
2 ?
7 7
0&1&1|0|1|1&1
9 0
3 0
1 1
11 0
13 0
3 1
7 1
7 7
0&1&1|0|1|1&1
9 ?
3 ?
1 ?
11 ?
13 ?
5 ?
7 ?
7 6
0&1&1|0|1|1&1
2 ?
4 ?
6 ?
8 ?
10 ?
12 ?
7 7
?????????????
1 1
3 1
5 1
7 1
9 1
11 1
13 1
Example Output 1
4 3 1 0 1
1 1 1 1 0 0 1 1
1 2 4 8 13 23 43 107
1 2 4 8 16 28 60
6280 3536 1884 976 498 252 127 64
© 2023-2025. All rights reserved.
Powered by @Rn
logo