摘要:
解析: 这是一个特判哦! 代码: 阅读全文
摘要:
分析: REF:https://blog.csdn.net/idrey/article/details/53869954 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
#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... 阅读全文
摘要:
题目: 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( 阅读全文