摘要: 题目传送门 1 /* 2 贪心/数学:还以为是BFS,其实x1 + 4 * k = x2, y1 + 4 * l = y2 3 */ 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int MAXN ... 阅读全文
posted @ 2015-06-06 17:24 Running_Time 阅读(182) 评论(0) 推荐(0)
摘要: 题目传送门 1 /* 2 暴力:O (n^2) 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 11 const int MAXN = 1e4 + 10;12 ... 阅读全文
posted @ 2015-06-06 16:34 Running_Time 阅读(255) 评论(0) 推荐(0)
摘要: 题目传送门 1 /* 2 我校oj的源题,看懂题意就很水,贴出来省的再敲:) 3 */ 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int MAXN = 1e3 + 10;10 const int... 阅读全文
posted @ 2015-06-06 16:33 Running_Time 阅读(145) 评论(0) 推荐(0)