传送门
模拟就好!
然后需要把一圈的有楼梯的都记录一下,取膜乱搞。
代码
#include <cstdio> #include <iostream> #define N 10001 #define M 101 int n, m, s, t, len, ans; int a[N][M], pos[N]; bool b[N][M]; inline int read() int main() while(t ^ s); s = pos[(a[i][s] 1) % len]; } printf("%d\n", ans); return 0; }
上一篇:[luoguP1056] 排座椅(sort + 模拟)
下一篇:[luoguP1098] 字符串的展开(模拟)
模拟









