Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int t,a,b,c,d;
- int x,y,x1,y1,x2,y2,imix,imiy,xr,xl,yu,yd,flag1,flag2;
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- cin >> t;
- while (t--){
- cin >> a >> b >> c >> d;
- cin >> x >> y >> x1 >> y1 >> x2 >> y2;
- flag1 = 0;
- flag2 = 0;
- imix = a > b ? x - (a - b) : x + (b - a);
- imiy = c > d ? y - (c - d) : y + (d - c);
- xr = x2 - x;
- xl = x - x1;
- yu = y2 - y;
- yd = y - y1;
- if (imix >= 0){
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement