백준 1022번 C++
#include #include #include #include using namespace std; struct Move { int x, y, z; }; Move mv[4] = { {0,1,1},{-1,0,1},{0,-1,1},{1,0,1} }; int main(void) { int r1, c1, r2, c2; int maxrange; int map[50][5]; cin >> r1 >> c1 >> r2 >> c2; maxrange = max(max(abs(r1), abs(c1)), max(abs(r2), abs(c2))); if (abs(0 - r1) >= 0 && abs(0 - r1) = 0 && abs(0 - c1) = maxrange && lasty >= maxrange) { flag = 1; b..
2019. 8. 30.