Statement | You are given a 1-bit operation formula in Polish notation. Calculate it. It is possible to parse uniquely without parenthesis but I surround all operations with '[' and ']' in this problem. Operators are below: * '&' - AND operator * '|' - OR operator Constraints * 1 ≤ |the input string| ≤ 25 |
---|---|
Sample Input | |
Sample Output |