#include <bits/stdc++.h> using namespace std; int a[33]; int main() { int n, t = 1; cin >> n; while (n != 0) { a[t] = n % 2; n /= 2; t++; } if (t == 1) { cout << 0; return 0; } for (int i = 1; i < t; i++) { cout << a[t - i]; } return 0; } /************************************************************** Problem: 1108 User: wangyiyang Language: C++ Result: Accepted Time:15 ms Memory:2072 kb ****************************************************************/