Submission #130042

#TimeUsernameProblemLanguageResultExecution timeMemory
13004244442Olivander (COCI18_olivander)C++11
50 / 50
2 ms380 KiB
#include <bits/stdc++.h> using namespace std; long long n,x[102],y[102],a; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>n; for(long long i=0;i<n;i++){ cin>>x[i]; } for(long long i=0;i<n;i++){ cin>>y[i]; } sort(x,x+n); sort(y,y+n); for(long long i=0;i<n;i++){ if(y[i]<x[i]) a=1; } if(a==1) cout<<"NE"; else cout<<"DA"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...