From 74e3aee918028d5c17d65bf678ab484feb8c6ada Mon Sep 17 00:00:00 2001 From: Ayush Arora Date: Mon, 1 Oct 2018 22:24:50 +0530 Subject: [PATCH] adding sample code --- pr.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pr.cpp diff --git a/pr.cpp b/pr.cpp new file mode 100644 index 0000000..66e6e0c --- /dev/null +++ b/pr.cpp @@ -0,0 +1,22 @@ +#include +using namespace std; + +bool isOverlap(pair p1,pair p2,pair p3,pair p4){ + if(p1.first>p4.first || p2.firstp3.second) return false; + return true; +} + +int main(){ + int t; + cin>>t; + while(t--){ + pair p1,p2,p3,p4; + cin>>p1.first>>p1.second; + cin>>p2.first>>p2.second; + cin>>p3.first>>p3.second; + cin>>p4.first>>p4.second; + cout<