Submission #294523

#TimeUsernameProblemLanguageResultExecution timeMemory
2945237_7_7Olivander (COCI18_olivander)C++17
50 / 50
1 ms384 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); int n; cin >> n; vector<int> a(n), b(n); for(auto &x: a) cin >> x; for(auto &x: b) cin >> x; sort(a.begin(), a.end()); sort(b.begin(), b.end()); int good = 1; for(int i = 0; i < n; i ++){ good &= (a[i] <= b[i]); } if(good == 1){ cout << "DA\n"; }else{ cout << "NE\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...