cf/mirror

Design Tutorial: Increase the Constraints

CF
472G2800· international gm7s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
101010
11110000
3
0 0 3
2 3 4
5 7 1
Output
1
1
0
Sample 2of 2
Input
10001010101011001010100101010011010
101010100101001010100100101010
5
0 0 12
3 9 7
6 4 15
12 15 10
13 3 20
Output
5
4
3
5
13
472G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)