提交时间:2022-04-12 23:05:00
运行 ID: 48436
//game #include<bits/stdc++.h> using namespace std; int n,a[101]; int main() { cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; if(n%2==1) cout<<max(a[1],a[n])<<endl; else cout<<min(a[1],a[n])<<endl; return 0; }