摘要: 题目:http://poj.org/problem?id=1416又16ms 1A了,这人品。。。 1 #include 2 #include 3 4 int n, ans; 5 bool rejected; 6 char path[100], tmp[10], ans_path[100]; ... 阅读全文
posted @ 2013-08-20 11:20 Anti-Magic 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=1129开始没读懂题,看discuss的做法,都是循环枚举的,很麻烦。然后我就决定dfs,调试了半天终于0ms A了。 1 #include 2 #include 3 bool graph[26][26], vis[26][4]; 4 i... 阅读全文
posted @ 2013-08-20 09:44 Anti-Magic 阅读(259) 评论(0) 推荐(0) 编辑