제출 #1109325

#제출 시각아이디문제언어결과실행 시간메모리
1109325vjudge1Best Place (NOI17_bestplace)C++17
100 / 100
31 ms3200 KiB
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n,sum=0,sum1=0,say=0,say1=0; cin>>n; vector<int>ev(n); vector<int>tedbir(n); for(int i=0;i<n;++i){ cin>>ev[i]; say++; cin>>tedbir[i]; say1++; } sort(ev.begin(),ev.end()); sort(tedbir.begin(),tedbir.end()); int mx,my; mx=ev[n/2]; my=tedbir[n/2]; cout<<mx<<' '<<my; }

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

bestplace.cpp: In function 'int main()':
bestplace.cpp:7:11: warning: unused variable 'sum' [-Wunused-variable]
    7 |     int n,sum=0,sum1=0,say=0,say1=0;
      |           ^~~
bestplace.cpp:7:17: warning: unused variable 'sum1' [-Wunused-variable]
    7 |     int n,sum=0,sum1=0,say=0,say1=0;
      |                 ^~~~
#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...