Submission #168306

#TimeUsernameProblemLanguageResultExecution timeMemory
168306ArKCaOlivander (COCI18_olivander)C++17
30 / 50
1085 ms380 KiB
#include <bits/stdc++.h> #define ll long long #define mod 1000000007 #define pb push_back #define pob pop_back #define f1 first #define s2 second #define N 50 #define ekle 200 using namespace std; int n; int dizi[N],dizim[N]; int main(){ // freopen("a.gir","r",stdin); // freopen("a.cik","w",stdout); scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&dizi[i]); } sort(dizi,dizi+n); for(int i=0;i<n;i++){ scanf("%d",&dizim[i]); } sort(dizim,dizim+n); for(int i=0;i<n;i++){ if(dizi[i]>dizim[i]){ printf("NE\n"); return 0; } } printf("DA\n"); }

Compilation message (stderr)

olivander.cpp: In function 'int main()':
olivander.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
olivander.cpp:21:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
      scanf("%d",&dizi[i]);
      ~~~~~^~~~~~~~~~~~~~~
olivander.cpp:25:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
      scanf("%d",&dizim[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...