摘要: 解析: 这是一个特判哦! 代码: 阅读全文
posted @ 2019-08-13 16:03 龙龙666666 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 分析: REF:https://blog.csdn.net/idrey/article/details/53869954 阅读全文
posted @ 2019-08-13 15:48 龙龙666666 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Given you n sets.All positive integers in sets are not less than 1 and not greater than m.If use these sets to combinate the new set,how many differen 阅读全文
posted @ 2019-08-13 14:11 龙龙666666 阅读(234) 评论(0) 推荐(0) 编辑
摘要: As we known, data stored in the computers is in binary form.(数据以二进制形式存储于电脑之中。)The problem we discuss now is about the positive integers and its binary 阅读全文
posted @ 2019-08-13 12:50 龙龙666666 阅读(196) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int getbits(int n)//统计(n)bin中的1的个数 { int res=0; while(n) { res++; n=n&(n-1); } return res; } int cmp(int a,int b)//统计a,b中the number of... 阅读全文
posted @ 2019-08-13 12:05 龙龙666666 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目: For 2 non-negative integers x and y, f(x, y) is defined as the number of different bits in the binary format of x and y. For example, f(2, 3)=1,f( 阅读全文
posted @ 2019-08-13 11:55 龙龙666666 阅读(220) 评论(0) 推荐(0) 编辑