Submission #470976

#TimeUsernameProblemLanguageResultExecution timeMemory
470976chinmayajhaOlivander (COCI18_olivander)C++17
50 / 50
1 ms204 KiB
#include "bits/stdc++.h" using namespace std; int main(){ int n; cin >> n; vector<int> a(n), b(n); for(int i = 0; i < n; ++i) cin >> a[i]; for(int i = 0; i < n; ++i) cin >> b[i]; sort(a.begin(), a.end()); sort(b.begin(), b.end()); for(int i = 0; i < n; ++i) if(a[i] > b[i]) { cout << "NE"; exit(0); } cout << "DA"; }
#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...