(C++) - 백준(BOJ) 13698 : Hawk eyes
#include #include using namespace std; int main() { string word; int cup[4] = { 1,0,0,2 },a,b; cin >> word; for (int i = 0; i < word.size(); i++) { switch ((char)word[i]) { case 'A': swap(cup[0], cup[1]); break; case 'B': swap(cup[0], cup[2]); break; case 'C': swap(cup[0], cup[3]); break; case 'D': swap(cup[1], cup[2]); break; case 'E': swap(cup[1], cup[3]); break; case 'F': swap(cup[2], cup[3])..