Submission #477781

#TimeUsernameProblemLanguageResultExecution timeMemory
477781PiejanVDCOlivander (COCI18_olivander)C++17
50 / 50
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; vector<int>read(vector<int>v) { int n = v.size(); for(auto &z : v) cin>>z; sort(v.begin(),v.end()); return v; } signed main() { int n; cin>>n; vector<int>x(n),y(n); x=read(x); y=read(y); for(int i = 0 ; i < n ; i++) { if(x[i] > y[i]) { cout << "NE"; return 0; } } cout << "DA"; return 0; }

Compilation message (stderr)

olivander.cpp: In function 'std::vector<int> read(std::vector<int>)':
olivander.cpp:5:9: warning: unused variable 'n' [-Wunused-variable]
    5 |     int n = v.size();
      |         ^
#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...