Submission #166302

#TimeUsernameProblemLanguageResultExecution timeMemory
166302itiamOlivander (COCI18_olivander)C++11
50 / 50
3 ms380 KiB
#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 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...