Submission #470989

#TimeUsernameProblemLanguageResultExecution timeMemory
470989sabertooth_69Olivander (COCI18_olivander)C++14
0 / 50
1 ms332 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"; break; } } 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...