Three Religions
1149B2200· master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
6 8abdabc+ 1 a+ 1 d+ 2 b+ 2 c+ 3 a+ 3 b+ 1 c- 2
Output
YESYESYESYESYESYESNOYES
Sample 2of 2
Input
6 8abbaab+ 1 a+ 2 a+ 3 a+ 1 b+ 2 b+ 3 b- 1+ 2 z
Output
YESYESYESYESYESNOYESNO
58%
1149B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)