Submission #1084069

#TimeUsernameProblemLanguageResultExecution timeMemory
1084069overwatch9Olivander (COCI18_olivander)C++17
50 / 50
1 ms508 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()); string ans = "DA"; for (int i = 0; i < n; i++) { if (a[i] > b[i]) { ans = "NE"; break; } } cout << ans << '\n'; }
#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...