Submission #253887

#TimeUsernameProblemLanguageResultExecution timeMemory
253887MolukhyyehOlivander (COCI18_olivander)C++14
50 / 50
1 ms384 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define all(x) x.begin(),x.end() int const N = 200001; int n, x[N], y[N]; int main(){ scanf("%d", &n); for(int i = 0; i<n; ++i)scanf("%d", x+i); for(int i = 0; i<n; ++i)scanf("%d", y+i); sort(x, x+n), sort(y, y+n); for(int i = 0; i<n; ++i)if(x[i] > y[i])return puts("NE"), 0; puts("DA"); }

Compilation message (stderr)

olivander.cpp: In function 'int main()':
olivander.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ~~~~~^~~~~~~~~~
olivander.cpp:11:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i = 0; i<n; ++i)scanf("%d", x+i);
                             ~~~~~^~~~~~~~~~~
olivander.cpp:12:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i = 0; i<n; ++i)scanf("%d", y+i);
                             ~~~~~^~~~~~~~~~~
#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...