Submission #737939

#TimeUsernameProblemLanguageResultExecution timeMemory
737939mzvOlivander (COCI18_olivander)C++17
50 / 50
1 ms328 KiB
#include <bits/stdc++.h> #define ccd ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define ll long long #define endl '\n' using namespace std; /* ------------------------ hi lol ------------------------ */ ll n,x,wands[101],box[101]; int main() { ccd cin >> n; for (int i=0;i<n;i++) { cin >> x; wands[i]=x; } for (int i=0;i<n;i++) { cin >> x; box[i]=x; } sort(wands,wands+n); sort(box,box+n); for (int i=0;i<n;i++) { if (wands[i]>box[i]) { cout << "NE" << endl; return 0; } } cout << "DA" << endl; }
#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...