#include<bits/stdc++.h> using namespace std; int main() { int x;cin>>x; string s; while(x) { if(x&1)s+='1'; else s+='0'; x>>=1; } cout<<s; return 0; }
By signing up a QFNU-OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your QFNU-OJ universal account