Submission #580057

#TimeUsernameProblemLanguageResultExecution timeMemory
580057MuntherCarrotOlivander (COCI18_olivander)C++14
50 / 50
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define all(x) x.begin(),x.end() int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; vector<int> w(n),b(n); for(int i=0;i<n;i++) cin >> w[i]; for(int i=0;i<n;i++) cin >> b[i]; sort(all(w)); sort(all(b)); bool ans=1; for(int i=0;i<n;i++){ if(b[i] < w[i]){ans=0;break;} } cout << (ans ? "DA":"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...