摘要: 这题 是被我自己搞复杂了....太SB了....还是porker的关于输出路径的简洁 有效多了 touch me#include #include #include #include using namespace std;int ans, n, m;const int size = 110;... 阅读全文
posted @ 2014-07-23 22:40 radical 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ....连跪3把 真无语..写完这个 看电影去了..明天就去看 后会无期了 应该不会让人失望的-------------碎碎念这题 我一开始自己是用 dfs写的.. 后来看了下discuss 看到个新方法 使用stl中的next_permuntation 速度不仅快了许多 而且代码简洁..关于 这个... 阅读全文
posted @ 2014-07-23 20:22 radical 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 今天 没什么事 有空在家 就再做了一题~撸2盘 刷一题 的节奏....这题 好水的 .. touch me#include #include #include using namespace std;int n;char maze[110][15];bool vis[110][15];int ... 阅读全文
posted @ 2014-07-23 17:32 radical 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 这题 真的狠特别...因为路径可以走回头路 但有一点需要注意那个重置为0的地方 只能走一次 因为你这样想 当你经过它一次 将剩余时间重置之后 再走一次它 继续重置 那你刚刚的路不是白走了吗?那肯定就不是最优解了 所以我们的vis只标记 重置点 就OK了 touch me 1 #include ... 阅读全文
posted @ 2014-07-23 14:55 radical 阅读(111) 评论(0) 推荐(0) 编辑