| 比赛 | cmath生日赛 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 讨厌整除的小明 | 最终得分 | 100 |
| 用户昵称 | CSU_Turkey | 运行时间 | 0.107 s |
| 代码语言 | C++ | 内存使用 | 13.66 MiB |
| 提交时间 | 2017-06-13 19:30:29 | ||
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int q;
long long n;
inline void slove(long long n)
{
int h=1;
while(n>1){
n/=2;h++;}
cout<<h;
}
int main()
{
freopen("ming.in","r",stdin);
freopen("ming.out","w",stdout);
scanf("%d",&q);
for(int i=1;i<=q;i++)
{
scanf("%lld",&n);
slove(n);
}
return 0;
}