This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <algorithm>
using namespace std;
int L[103],L2[103];
int cmp(int x,int y)
{
return x > y;
}
int main(){
int N,x,y;
string t="DA";
cin >> N;
for (int i=0; i<N; i++){
cin >> x;
L[i]=x;
}
for (int i=0; i<N; i++){
cin >> y;
L2[i]=y;
}
sort(L,L+N,cmp);
sort(L2,L2+N,cmp);
for (int i=0; i<N; i++){
if (L[i]>L2[i]){
t="NE";
break;
}
}
cout << t;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |