Submission #87595

#TimeUsernameProblemLanguageResultExecution timeMemory
87595AntonioDakiOlivander (COCI18_olivander)C++14
0 / 50
2 ms648 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n, ok = 1, m = 0; cin >> n; long long x[102], y[102]; for(int i = 0; i < n; ++i) cin >> x[i]; for(int i = 0; i < n; ++i) cin >> y[i]; sort(x, x + n); sort(y, y + n); for(int i = 0; i < n; ++i){ for(int j = 0; j <= n; ++j){ if(x[i] <= y[j]){ m = j; j = n + 1; } if(j == n) ok = 0; } y[m] = 0; m = 0; } if(ok) 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...