SHARE
TWEET

worldfinal2019

sonprao Jun 14th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits.stdc++.h>
  2. using namespace std;
  3. int main(){
  4.     int n;
  5.     cin>>n;
  6.     FOR(i,1,n) cin>>a[i].first;
  7.     FOR(i,1,n) cin>>a[i].second;
  8.     FOR(i,1,n) cin>>b[i].first;
  9.     FOR(i,1,n) cin>>b[i].second;
  10.     sort(a+1,a+1+n);
  11.     sort(b+1,b+1+n);
  12.     FOR(i,1,n) if (a[i]<b[i]) cout<<"IMPOSSIBLE";
  13.     return;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top