考试的时候因为这个题拿了第四(一共四个人)
发现有BUG的时候考试已经结束了
马上改完发出来
让大家都参考一下,
别再出错啦!!
#include <iostream>
using namespace std;
int main(){
long int y,t;
cin>>y>>t;
if (t==0) y=1;
if (y>=0) cout<<"NO"<<endl;
else if (t%2==0) cout<<"NO"<<endl;
else cout<<"YES"<<endl;
if (y%2==0) cout<<"NO";
else cout<<"YES";
}