question code:TANDJ1
my solution:
#include
using namespace std;
int main() {
// your code goes here
int t;
cin >> t;
while (t--)
{int a,b,c,d,k;
cin>>a>>b>>c>>d>>k;
if(((c-a)%2==0 && (d-b)%2!=0)||((c-a)%2!=0&&(d-b)%2==0)){if(k%2==0){cout<<"no\n";}
else{cout<<"yes\n";};
}
else{
if(k%2==0){cout<<"yes\n";}
else{cout<<"no\n";};
};
}
return 0;
}