#3567. 2024-T1-Logical Moos-[bronze]
2024-T1-Logical Moos-[bronze]
input:
5 7
false and true or true
1 1 false
1 3 true
1 5 false
3 3 true
3 3 false
5 5 false
5 5 true
output:
NYYYNYY
input2:
13 4
false or true and false and false and true or true and false
1 5 false
3 11 true
3 11 false
13 13 true
outout:2:
YNYY