제출 #936338

#제출 시각아이디문제언어결과실행 시간메모리
936338BbtTBest Place (NOI17_bestplace)C++17
100 / 100
29 ms3268 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; int x[N+5],y[N+5]; for(int i=0;i<N;i++){ scanf("%d%d",x+i,y+i); } sort(x,x+N); sort(y,y+N); cout<<x[N/2]<<" "<<y[N/2]<<endl; return 0; }

컴파일 시 표준 에러 (stderr) 메시지

bestplace.cpp: In function 'int main()':
bestplace.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |         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...