摘要: http://codeforces.com/contest/352/problem/C题意:给予N*2个数字,改变其中的N个向上进位,N个向下进位,使最后得到得数与原来数的差的绝对值最小对每一个浮点数都取其下限,得到的差值就是所有浮点数小数部分的和;然后则需要从2*n个数里面选出n个数取其上限,即下... 阅读全文
posted @ 2014-08-22 23:13 null1019 阅读(125) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/352/problem/B 1 #include 2 #include 3 #include 4 using namespace std; 5 int a[100010]; 6 int n; 7 bool vis[100010]; 8... 阅读全文
posted @ 2014-08-22 11:06 null1019 阅读(102) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/352/problem/A 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int n; 7 int a[1001]; 8 int main() 9 {10 ... 阅读全文
posted @ 2014-08-22 10:12 null1019 阅读(89) 评论(0) 推荐(0) 编辑