Codeforces Round #697 (Div. 3) A. Odd Divisor
http://codeforces.com/problemset/problem/1475/A
(n&(n-1))==1说明这个数有因子为奇数
// // Created by w on 2021-01-28. // #include <iostream> #include <cstring> using namespace std; typedef long long ll ; int main() { int t; cin>>t; while (t--) { ll n; cin>>n; if((n&(n-1))) cout<<"yes"<<'\n'; else cout<<"no"<<'\n'; } return 0; }

浙公网安备 33010602011771号