程帅霞

不断受挫,不停起身,不断追寻,不止AC~~

导航

2020年9月23日 #

Infinite Maze

摘要: 从起点开始走,对于可以走到的位置,都必定能从这个位置回到起点。这样,对地图进行搜索,当地图中的某一个被访问了两次,就能说明这个地图可以从起点走到无穷远。 搜索的坐标(x,y),x的绝对值可能大于n,的绝对值可能大于m,(x,y)对应在基础地图的位置为rx=(nx%n+n)%n,ry=(ny%m+m) 阅读全文

posted @ 2020-09-23 21:06 程帅霞 阅读(100) 评论(0) 推荐(0) 编辑

Just a Hook 线段树

摘要: In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic 阅读全文

posted @ 2020-09-23 20:46 程帅霞 阅读(86) 评论(0) 推荐(0) 编辑