Submission #580072

#TimeUsernameProblemLanguageResultExecution timeMemory
580072ammar124Olivander (COCI18_olivander)C++14
50 / 50
1 ms212 KiB
#include <bits/stdc++.h> #define endl '\n' #define ll long long using namespace std; int const maxin = 1e5+6; int main() { ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); int a; cin>>a; ll arr[a]; ll arr2[a]; for(int i=0;i<a;i++) { cin>>arr[i]; } for(int i=0;i<a;i++) { cin>>arr2[i]; } sort(arr,arr+a); sort(arr2,arr2+a); bool flag = true ; for(int i=0;i<a;i++) { if(arr2[i] < arr[i]) { flag = false ; break ; } } if(flag) cout<<"DA"; else cout<<"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...