Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void bitoutput(vector <ll>& d){
- for (auto i:d){
- cout<<i;
- }
- cout<<"\n";
- }
- void bitrep(ll x){
- ll n=0;
- vector <ll> d;
- while (x>0){
- n=x%2;
- d.push_back(n);
- x=x/2;
- }
- reverse(d.begin(),d.end());
- bitoutput(d);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement