记录编号 |
403408 |
评测结果 |
AAAAAAAAAA |
题目名称 |
讨厌整除的小明 |
最终得分 |
100 |
用户昵称 |
kZime |
是否通过 |
通过 |
代码语言 |
C++ |
运行时间 |
0.066 s |
提交时间 |
2017-05-10 08:52:05 |
内存使用 |
0.31 MiB |
显示代码纯文本
# 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));
}
}