Submission #1018464

#TimeUsernameProblemLanguageResultExecution timeMemory
1018464vjudge1Olivander (COCI18_olivander)C++17
50 / 50
1 ms440 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; 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,a+n); sort(b,b+n); string ans="DA"; for (int i=0;i<n;i++) if (a[i]>b[i]) ans="NE"; cout<<ans<<endl; 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...