#include <iostream> using namespace std; int t,x,y; int main() { cin>>t; while (t--) { cin>>x>>y; if (x<0||y<0) { cout<<"PING"<<endl; } else { if ((x+y)%2==0) { cout<<"NO"<<endl; } else { cout<<"YES"<<endl; } } } return 0; }
代码见上