https://www.acmicpc.net/problem/3190 코드#include #include #include using namespace std;#define FASTIO ios::sync_with_stdio(false);cin.tie(NULL);#define MAX 101typedef pair dir;typedef pair pi;int n, k, l, ans = 1, arr[MAX][MAX], dirCnt, nowDir, x, y;bool isMeet() { if (nowDir == 0) { x++; if (x == n) return true; } else if (nowDir == 1) { y++; if (y == n) return true; } else if (nowDir == 2) ..