Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. int main(){
  6. int t,a,b,c,d;
  7. int x,y,x1,y1,x2,y2,imix,imiy,xr,xl,yu,yd,flag1,flag2;
  8. ios_base::sync_with_stdio(false);
  9. cin.tie(NULL);
  10.  
  11. cin >> t;
  12. while (t--){
  13. cin >> a >> b >> c >> d;
  14. cin >> x >> y >> x1 >> y1 >> x2 >> y2;
  15. flag1 = 0;
  16. flag2 = 0;
  17.  
  18. imix = a > b ? x - (a - b) : x + (b - a);
  19. imiy = c > d ? y - (c - d) : y + (d - c);
  20.  
  21. xr = x2 - x;
  22. xl = x - x1;
  23. yu = y2 - y;
  24. yd = y - y1;
  25.  
  26. if (imix >= 0){
  27.  
  28. }
  29.  
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement