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 main(){
int n, x, y;
cin >> n;
int listx[n], listy[n], sol = 0;
for(int i = 0; i < n; i++){
cin >> x;
listx[i] = x;
}
for(int i = 0; i < n; i++){
cin >> y;
listy[i] = y;
}
sort(listx, listx + n);
sort(listy, listy + n);
for(int i = 0; i < n; i++){
if(listy[i] >= listx[i]){
sol += 1;
}
}
if(sol == n){
cout << "DA";
}
else{
cout << "NE";
}
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... |