摘要: Codeforces Round #171 (Div. 2) 搞完(题解) Codeforces Round #168 (Div. 2) 差E ( 题解 ) 阅读全文
posted @ 2013-03-11 21:36 zhsl 阅读(327) 评论(0) 推荐(0) 编辑
摘要: A.yy题,分情况讨论比较方便,详见代码。View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #include<math.h> 5 #include<iostream> 6 #include<string> 7 #include<algorithm> 8 #include<vector> 9 #include<queue>10 #include<stack>11 using nam 阅读全文
posted @ 2013-03-11 21:31 zhsl 阅读(497) 评论(0) 推荐(0) 编辑
摘要: A.模拟。 B.数据小,模拟。 C.给定一个数组,要求使得数组中不存在两个数相差k倍,问数组中最大的数的个数。先排序,然后从前往后找倍数相差为k的数,二分查找。View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #include<math.h> 5 #include<algorithm> 6 #include<string> 7 #include<queue> 8 #include<stack> 9 #i 阅读全文
posted @ 2013-03-11 21:09 zhsl 阅读(211) 评论(0) 推荐(0) 编辑