제출 #466129

#제출 시각아이디문제언어결과실행 시간메모리
466129NanoginesBest Place (NOI17_bestplace)C++14
100 / 100
43 ms3140 KiB
#include <bits/stdc++.h> using namespace std; #define fastio ios::sync_with_stdio(0);cin.tie(0); cout.tie(0); #define forn(i, a, b) for (int i=a; i<b; i++) #define fore(i, a, b) for (int i=a; i<=b; i++) typedef vector<int> vi; void fast_io() { fastio; } signed main() { fast_io(); int n; cin >> n; int c, d; vi a(n), b(n); forn (i, 0, n) cin >> a[i] >> b[i]; sort(a.begin(), a.end()); sort(b.begin(), b.end()); cout << a[(n - 1) / 2] << " " << b[(n - 1) / 2] << endl; }

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

bestplace.cpp: In function 'int main()':
bestplace.cpp:20:7: warning: unused variable 'c' [-Wunused-variable]
   20 |   int c, d;
      |       ^
bestplace.cpp:20:10: warning: unused variable 'd' [-Wunused-variable]
   20 |   int c, d;
      |          ^
#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...