标签:题目 end while and https clu str bre turn
#include <iostream>
using namespace std;
const int N = 50;
int a[N];
int t;
int n;
int main()
{
for(int i = 0;i < 31;i ++)
{
a[i] = (1 << i) - 1;
}
cin >> t;
while(t --)
{
cin >> n;
for(int i = 2;i < 31;i ++)
{
if(n % a[i] == 0){
cout << n / a[i] << endl;
break;
}
}
}
return 0;
}
标签:题目 end while and https clu str bre turn
原文地址:https://www.cnblogs.com/QFNU-ACM/p/12940941.html