题解 | 小美的因子查询
小美的因子查询
https://www.nowcoder.com/practice/1870e68256794c6aa727c8bb71fd9737
#include <iostream> using namespace std; int main() { int T,x;cin>>T; while(T--){ cin>>x; if(x%2==0)cout<<"YES"<<endl;else cout<<"NO"<<endl;//有偶数因子则一定为2的倍数 } } // 64 位输出请用 printf("%lld")