A. Doors and Keys r, g, b, R, G, B의 6자리 문자열이 주어졌을 때 R앞에 r, G앞에 g, B앞에 b가 등장하는 지 확인해서 모두 등장하면 YES, 아아니면 NO를 출력한다. #include using namespace std; using ll = long long; int tc; string str; int main() { cin.tie(NULL); cout.tie(NULL); ios::sync_with_stdio(false); cin >> tc; while (tc--) { cin >> str; bool chk1 = 0; bool chk2 = 0; bool chk3 = 0; bool possible1 = 0; bool possible2 = 0; bool possible3 = ..