백준 1063 c++ [킹]


백준 1063 c++ [킹]

#include #include #include #include #include #include using namespace std; int map[8][8];//체스판 string str, str2, od;//킹의위치입력, 돌의위치입력, 움직이는정보 int n;//움직이는횟수 vectorv(2);//킹,돌의 좌표저장할 vector int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> str >> str2 >> n; for (int i = 0; i < str.length(); i++)//킹의위치 저장, 좌표상 0,0 은 체스판으로 8,a { if (i == 0) { int idx = 0; for (char j = '..


원문링크 : 백준 1063 c++ [킹]