백준 17267 상남자 혼내주기
#include #define fastio ios::sync_with_stdio(0), cin.tie(0) using namespace std; using ll = long long; using pii = pair; #define all(v) v.begin(), v.end() int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; pii p; int dist[1005][1005]; bool arr[1005][1005]; int n, m, L, R; struct state { int x, y, d, l, r; state(int xx, int yy, int dd, int ll, int rr) { x = xx, y = yy, d = dd, l = ll, r = rr; ..
혼내주기
2021. 7. 22. 10:54