Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t,i,s,n;
- long long int a,b,c,d,x,y,x1,x2,y1,y2;
- for(i=0; i<t; i++)
- {
- scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
- scanf("%lld %lld %lld %lld %lld %lld",&x
- ,&y,&x1,&y1,&x2,&y2);
- s=(a+b+c+d);
- n=2*(abs(x1-x2)+abs(y1-y2));
- if(s<n)
- {
- printf("Yes\n");
- }
- if(s>n)
- {
- printf("No\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement