mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
314 B
C++
16 lines
314 B
C++
|
#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;
|
||
|
}
|