#include <iostream> using namespace std; //23 / 2 = 11 ... 1 11 / 2 = 5 ... 1 5 / 2 = 2 ... 1 2 / 2 = 1 ... 0 1 / 2 = 0 ... 1 int main() { int n; int nums[100]; while(cin>>n){ int i=0; while(n!=0){ nums[i]=n%2; i++; n/=2; } for(int j=i-1;j>=0;j--){ cout<<nums[j]; }cout<<endl; } return 0; } // 64 位输出请用 printf("%lld")