Codeforces Round #697 (Div. 3)
比赛传送门
看到unrated直接睡觉去了(手动狗头) ,又错失一次 上分 掉分好时机QAQ。
A. Odd Divisor
题意:
判断整数n有没有奇数因子(odd divisor)。
思路:
签到题
Code:
int main() {
int t;
cin >> t;
while (t--) {
LL n;
cin >> n;
while (n % 2 == 0) {
n /= 2;
}
if (n == 1) cout <<
原创
2021-01-26 18:13:00 ·
225 阅读 ·
1 评论