Submission #580071

#TimeUsernameProblemLanguageResultExecution timeMemory
580071mohammedMonemOlivander (COCI18_olivander)C++14
50 / 50
1 ms240 KiB
#include<bits/stdc++.h> #include <queue> using namespace std; #define ll long long #define endl '\n' #define space ' ' const int N = (int)1e4 + 20; void Run(){ ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #ifndef ONLINE_JUDGE // freopen("input.txt","r",stdin); // freopen("output.txt","w",stdout); #endif } int main() { Run(); //vars&input int t = 1; // cin >> t; while (t--) { int n; cin >> n; int x[100],y[100]; for (int i = 0; i < n; i++) cin >> x[i]; for (int i = 0; i < n; i++) cin >> y[i]; //operations room string ans = "DA"; sort(x,x + n); sort(y,y + n); for (int i = 0; i < n; i++) if (x[i] > y[i]) ans = "NE"; //output cout << ans; } 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...