提交时间:2022-04-13 22:21:20
运行 ID: 48581
#include <bits/stdc++.h> using namespace std; int n, l, r; int main() { scanf("%d%d", &n, &l); for (int i = 2; i <= n; i++) { scanf("%d", &r); } printf("%d\n", (n & 1 ? max(l, r) : min(l, r))); return 0; }