You are viewing a single comment's thread. Return to all comments →
long long int nn;cin>>nn; long long int a=log2(--nn/3.+1)+1; a=3*(pow(2,a)-1); cout<<a-nn<<endl;
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Counter
You are viewing a single comment's thread. Return to all comments →