Submission #580069

# Submission time Handle Problem Language Result Execution time Memory
580069 2022-06-20T14:23:24 Z mohammedMonem Olivander (COCI18_olivander) C++14
0 / 50
1 ms 212 KB
#include<bits/stdc++.h>
#include <queue>
using namespace std;
#define ll long long
#define endl '\n'
#define space ' '
const int N = (int)1e4 + 20;

void Run(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
 #ifndef ONLINE_JUDGE
//    freopen("input.txt","r",stdin);
//    freopen("output.txt","w",stdout);
 #endif
}

int main()
{
    Run();
    //vars&input
    int t = 1;
//    cin >> t;
    while (t--) {
        int n;
        cin >> n;
      	int x[100],y[100];
      	for (int i = 0; i < n; i++) cin >> x[i];
      	for (int i = 0; i < n; i++) cin >> y[i];
        
        //operations room
        string ans = "YES";
        sort(x,x + n);
      	sort(y,y + n);
        for (int i = 0; i < n; i++)
            if (x[i] > y[i]) ans = "NO";
        
        //output
        cout << ans;
    }
    
    return 0;
    
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -