Submission #161527

#TimeUsernameProblemLanguageResultExecution timeMemory
161527ToniBOlivander (COCI18_olivander)C++14
50 / 50
2 ms376 KiB
#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 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...