Submission #42692

#TimeUsernameProblemLanguageResultExecution timeMemory
42692iletavcioskiOlivander (COCI18_olivander)C++14
0 / 50
2 ms704 KiB
#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef long long ll; int main() { int n; cin>>n; vector<int> v1,v2; for(int i=100;i>=0;i--) { int a; cin>>a; v1.push_back(a); v2.push_back(a); } sort(v1.begin(),v1.end()); sort(v2.begin(),v2.end()); for(int i=0;i<n;i++) { if(v2[i]<v1[i]) { cout<<"NE"<<endl; return 0; } } cout<<"DA"<<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...