Submission #586502

#TimeUsernameProblemLanguageResultExecution timeMemory
586502krit3379Best Place (NOI17_bestplace)C++17
100 / 100
38 ms3020 KiB
#include<bits/stdc++.h> using namespace std; #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") #define N 100005 int x[N],y[N]; int main(){ int n,i; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d %d",&x[i],&y[i]); sort(x,x+n); sort(y,y+n); printf("%d %d",x[n/2],y[n/2]); return 0; }

Compilation message (stderr)

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