#include<bits/stdc++.h> using namespace std; int main() { long long n; string s; cin >> n; if (n == 0) { s = "0"; } else { while (n!= 0) { long long x = n % 2; s = to_string(x) + s; n = n / 2; } } cout << s; return 0; } /************************************************************** Problem: 1108 User: wangyichen2 Language: C++ Result: Accepted Time:18 ms Memory:2076 kb ****************************************************************/