http://acm.hdu.edu.cn/showproblem.php?pid=3752
捅死一只萌萌~
View Code
#include <stdio.h> int main() { int t,m,n,i; scanf("%d",&t); while(t--) { scanf("%d%d",&m,&n); for(i=0;i<n-1;i++) m-=2; puts(m%2?"NO":"YES"); } return 0; }