diff --git a/Have a Fun with 0 and 1 :)/1527 A. And Then There Were K b/Have a Fun with 0 and 1 :)/1527 A. And Then There Were K new file mode 100644 index 0000000..3531950 --- /dev/null +++ b/Have a Fun with 0 and 1 :)/1527 A. And Then There Were K @@ -0,0 +1,33 @@ +#include +using namespace std; +typedef long long int ll; +const int N=1e9+7; +bool cmp(pair&a,pair&b){ + return a.second>=1; + } + return ans; + } +int main() { + ios::sync_with_stdio(false), cin.tie(0); + ll t;cin>>t; + while(t--){ + ll n,x,y,z,ans,cnt=0; + cin>>n; + + while(n>0){ + n=n/2;cnt++; + } + cnt--; + ans=power(2,cnt); + cout<