[luoguP1076] 寻宝(模拟)


传送门

模拟就好!

然后需要把一圈的有楼梯的都记录一下,取膜乱搞。

代码

#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; }

  



上一篇:[luoguP1037] 产生数(floyd + 高精度)

下一篇:[luoguP3565] [POI2014]HOT-Hotels(dfs)


模拟
Copyright © 2002-2019 k262电脑网 www.k262.cn 皖ICP备2020016292号
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!QQ:251442993 热门搜索 网站地图