Submission #470995

#TimeUsernameProblemLanguageResultExecution timeMemory
470995sabertooth_69Olivander (COCI18_olivander)C++14
50 / 50
1 ms204 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long int int main() { ll n; cin>>n; ll a[n]; ll b[n]; for(int i=0;i<n;i++) cin>>a[i]; sort(a,a+n); for(int i=0;i<n;i++) cin>>b[i]; sort(b,b+n); for(int i=0;i<n;i++) if(a[i]>b[i]) { cout<<"NE"<<"\n"; return 0; } cout<<"DA"<<"\n"; 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...