题解 | 小红与奇数
小红与奇数
https://www.nowcoder.com/practice/a8dd44afe0d44db782f46096cc295361?channelPut=tracker3
#include <bits/stdc++.h>
using namespace std;
int main()
{
int x;
cin>>x;
if(x&1)cout<<"No"<<endl;//通过瞪眼法,我们可以发现,如果这个数是奇数,那么他就不能通过操作变成奇数,偶数则能变成奇数
else cout<<"Yes"<<endl;
return 0;
}
