好嗨呦
2023-10-04 14:46:18
发布于:浙江
3阅读
0回复
0点赞
#include<cstdio>
#include<algorithm>
#include<cmath>
using namespace std;
int main()
{
int n,max=-10000;
scanf("%d",&n);
while(n){
int m;
scanf("%d",&m);
if(m>max)
max=m;
n--;
}
printf("%d",max);
return 0;
}
这里空空如也
有帮助,赞一个