OJ-Problems-Source/HDOJ/1079_autoAC.cpp

16 lines
314 B
C++
Raw Normal View History

2016-08-12 10:16:59 +08:00
#include <stdio.h>
int main(){
int yy,mm,dd;
int t;
scanf("%d",&t);
while(t--){
scanf("%d%d%d",&yy,&mm,&dd);
if( ((mm + dd) & 1) ==0 )
puts("YES");
else if(dd==30 && ( mm == 9 || mm == 11))
puts("YES");
else puts("NO");
}
return 0;
}