- 最高的分数
好
- @ 2025-3-12 15:49:11
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n, max=0,score;
cin>>n;
for(int i=0;i<n;++i)
{
cin>>score;
if(score>max)
max=score;
}
cout<<max;
}
1 条评论
-
苏正阳 LV 7 @ 2025-7-19 9:58:01``c++
using namespace std; int main() { int n, max=0,score; cin>>n; for(int i=0;i<n;++i) { cin>>score; if(score>max)max=score; } cout<<max; return 0; }
- 1
信息
- ID
- 66
- 时间
- ms
- 内存
- MiB
- 难度
- 4
- 标签
- 递交数
- 236
- 已通过
- 112
- 上传者