摘要:
http://codeforces.com/contest/373/problem/C贪心,先排序,然后从n/2位置倒着找每一个可不可以放到别的袋鼠内。 1 #include 2 #include 3 #include 4 #define maxn 5000001 5 using namesp... 阅读全文
posted @ 2014-11-06 20:24
null1019
阅读(169)
评论(0)
推荐(0)
摘要:
http://codeforces.com/contest/373/problem/B用二分枚举长度就可以。 1 #include 2 #include 3 #include 4 #define LL __int64 5 using namespace std; 6 7 LL w,m,k; ... 阅读全文
posted @ 2014-11-06 17:38
null1019
阅读(179)
评论(0)
推荐(0)
摘要:
http://codeforces.com/contest/485/problem/C利用位运算来解决这个题,从L开始,从每一位按位或,知道到达r位置,ans=ans|(1 2 #include 3 #include 4 #define LL __int64 5 using namespace ... 阅读全文
posted @ 2014-11-06 16:21
null1019
阅读(143)
评论(0)
推荐(0)

浙公网安备 33010602011771号