比赛 |
cmath生日赛 |
评测结果 |
AAAAAAAAAA |
题目名称 |
讨厌整除的小明 |
最终得分 |
100 |
用户昵称 |
HZOI_蒟蒻一只 |
运行时间 |
0.082 s |
代码语言 |
C++ |
内存使用 |
13.66 MiB |
提交时间 |
2017-06-13 21:02:30 |
显示代码纯文本
# include <cstdio>
# include <iostream>
# define ll long long
using namespace std;
inline ll get_num() {
ll k = 0, f = 1;
char c = getchar();
for(; !isdigit(c); c = getchar()) if(c == '-') f = -1;
for(; isdigit(c); c = getchar()) k = k * 10 + c - '0';
return k * f;
}
inline ll get_line(ll x) {
ll k = 1;
while(x >> 1) {
x >>= 1;
k++;
}
return k;
}
int main() {
freopen("ming.in", "r", stdin);
freopen("ming.out", "w", stdout);
ll n = get_num();
while(n--) {
ll x = get_num();
printf("%lld\n", get_line(x));
}
}