백준 7573: 고기잡이
https://www.acmicpc.net/problem/7573 일단 나는 단순하게 생각을 했다. 물고기 위치를 하나 잡아서 꼭짓점으로 잡아서 각각 1,2,3,4 분면을 길이를 조정하는 방식을 하면 쉽게 해결할 수 있을것이라 생각했다.#include #include using namespace std;pair P[101];int N, L, M, ans = 0;int dy[4] = { -1, 1, -1, 1 };int dx[4] = { 1, -1, -1, 1 };bool inRange(int y, int x){ return y >= 1 && x >= 1 && y ey) return cmp(ey, sx, sy, ex, idx); if (sx > ex) return cmp(sy, ex, ey, sx, id..