- 博客(4)
- 收藏
- 关注
原创 LeetCode201--Bitwise AND of Numbers Range
题目链接:点击打开链接 Given a range [m, n] where 0 For example, given the range [5, 7], you should return 4. 题目大意:输入两个数字m n(m 思路:与运算特点:0与任何数字都为0.所以在m到n范围内,每一个位上只要出现0,那么该位则为0. 考虑两个数的最后一位,如果两个数之间的某个数为偶数,则
2015-04-25 16:08:55
327
原创 HDOJ 4864 Task 贪心
#include #include #include #include #include struct task { int xi; int yi; }t[100001],ma[100001]; int comp(const void* a,const void* b) { task *c=(task *)a; task *d=(task *)b; if(
2014-07-24 18:15:54
327
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人