摘要: http://codeforces.com/contest/350/problem/C对n个点按曼哈顿距离排序。 1 #include 2 #include 3 #include 4 #define maxn 100010 5 using namespace std; 6 7 struct ... 阅读全文
posted @ 2014-08-21 21:44 null1019 阅读(142) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/350/problem/B从旅馆开始倒着找到一个点它的出度>1的位置为止,比较长度大小,找到一个长度最大的即可。 1 #include 2 #include 3 #include 4 #define maxn 100010 5 usi... 阅读全文
posted @ 2014-08-21 20:02 null1019 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/349/problem/B贪心 1 #include 2 #include 3 #include 4 using namespace std; 5 const int inf=1=1; j--)46 {47 ... 阅读全文
posted @ 2014-08-21 09:34 null1019 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/460/problem/B 1 import java.util.*; 2 import java.math.*; 3 public class Main { 4 5 public static void main(Str... 阅读全文
posted @ 2014-08-21 08:42 null1019 阅读(132) 评论(0) 推荐(0) 编辑