文章
16
粉丝
402
获赞
21
访问
157.5k
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int all[n];
for (int i = 0; i < n; i++){
cin >> all[i];
}
int max = all[0], min = all[0];
for (int i = 0; i < n; i++){
if (all[i] < min) min = all[i];
if (all[i] > max) max = all[i];
}
cout << min << ' '...
登录后发布评论
暂无评论,来抢沙发