摘要: HDU 3533 **题意:**给定一个网格(n + 1 行,m + 1列,0~n,0~m),小明站在(0, 0)点,要到达(n, m)点,现在在一些网格处安置了炮台,炮台向固定的方向(NSWE)并且每隔一段时间发射炮弹,小明初始时有一定的HP,小明可以做以下5种操作: 向N、S、W、E移动一格 站 阅读全文
posted @ 2021-09-28 19:20 yys_c 阅读(25) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<vector> #include<queue> #include<cstring> using namespace std; const int N = 110; char os[] = {'N', 'S', 'W', 'E'}; int dx 阅读全文
posted @ 2021-09-28 19:18 yys_c 阅读(36) 评论(0) 推荐(0) 编辑