#include #include #include #include #include using namespace std; void twosetbits(unsigned long n) { long start=1; long end=0; while(n>0){ while(start>end){ if(n==1){ unsigned long res=((1<>n; unsigned long a; for(int i=0;i>a; twosetbits(a); } return 0; }