简简单单 的 题解
2025-12-24 20:23:20
发布于:浙江
0阅读
0回复
0点赞
本题考查:
1,本题考查的是各位学员函数的运用;
解题思路:
1,先定义变量/数组,输入之后用最小变量+函数分别便利;
示例代码:
#include <bits/stdc++.h>
using namespace std;
int main() {
int T;
cin>>T;
int mine=1005;
while(T--){
int x;
cin>>x;
mine=min(mine,x);
}
cout<<mine;
return 0;
}
这里空空如也







有帮助,赞一个