Advertisement
AKIB37

Untitled

Mar 31st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int t,i,s,n;
  5. long long int a,b,c,d,x,y,x1,x2,y1,y2;
  6. for(i=0; i<t; i++)
  7. {
  8. scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
  9. scanf("%lld %lld %lld %lld %lld %lld",&x
  10. ,&y,&x1,&y1,&x2,&y2);
  11. s=(a+b+c+d);
  12. n=2*(abs(x1-x2)+abs(y1-y2));
  13. if(s<n)
  14. {
  15. printf("Yes\n");
  16. }
  17. if(s>n)
  18. {
  19. printf("No\n");
  20. }
  21.  
  22. }
  23. return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement