Submission #470985

#TimeUsernameProblemLanguageResultExecution timeMemory
470985sabertooth_69Olivander (COCI18_olivander)C++14
30 / 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"; break; } else { cout<<"DA"<<"\n"; break; } } 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...