Submission #47097

#TimeUsernameProblemLanguageResultExecution timeMemory
47097BruteforcemanOlivander (COCI18_olivander)C++11
50 / 50
3 ms892 KiB
#include "bits/stdc++.h" using namespace std; int a[111]; int b[111]; int main(int argc, char const *argv[]) { int n; cin >> n; for(int i = 0; i < n; i++) { cin >> a[i]; } for(int i = 0; i < n; i++) { cin >> b[i]; } sort(a, a + n); sort(b, b + n); for(int i = 0; i < n; i++) { if(a[i] > b[i]) { cout << "NE" << endl; exit(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...