#include <iostream>
using namespace std;

int main()
{
    //freopen("acm.acm","r",stdin);
    int a;
    int b;
    int c;
    int test;
    cin>>test;
    while(test --)
    {
        cin>>a>>b>>c;
        if( (b == 9 && c == 30) || (b == 11 && c == 30))
        {
            cout<<"YES"<<endl;
            continue;
        }
        if((b % 2 != 0 && c % 2 != 0 )|| (b%2 == 0 && c%2 == 0))
        {
            cout<<"YES"<<endl;
        }
        else
        {
            cout<<"NO"<<endl;
        }

    }
}

 

关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。 

POJ 1082

技术网站地址: vmfor.com

相关文章:

  • 2022-01-16
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-11-30
  • 2021-11-26
猜你喜欢
  • 2022-01-12
  • 2021-11-22
  • 2022-12-23
  • 2021-07-09
  • 2021-06-01
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案