当前位置:网站首页>-最低分-
-最低分-
2022-08-03 05:10:00 【-JMY-】
题目描述
六年级三班进行了一次体育测试,体育老师想知道最低分是多少,请你用编程帮助老师完成这项任务。
输入
两行,第一行为整数n(1<=n<=100)表示参加体育测试的人数;
第二行为n个学生的成绩,成绩均为0~100之间的整数。
输出
最低的分数。
样例输入
5 78 89 67 93 63
样例输出
63
参考代码
#include<bits/stdc++.h>
using namespace std;
int main(){
int minn=INT_MAX;
int n,a,b;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a;
if(a<minn)
minn=a;
}
cout<<minn;
return 0;
}
边栏推荐
- Presto installation and deployment tutorial
- Response 重写设置返回值
- typescript46-函数之间的类型兼容性
- CAD有生僻字如何打出来、如何提交软件相关问题或建议?
- Junit
- Apache DolphinScheduler版本2.0.5分布式集群的安装
- PotPlayer实现上班摸鱼电视自由
- Common fluorescent dyes to modify a variety of groups and its excitation and emission wavelength data in the data
- 内部类、static关键字、final
- 集合框架知识
猜你喜欢
![[Harmony OS] [ARK UI] ETS context basic operations](/img/40/d5924477c42e2b3246eb212f4be534.png)
[Harmony OS] [ARK UI] ETS context basic operations

Peptides mediated PEG DSPE of phospholipids, targeted functional materials - PEG - RGD/TAT/NGR/APRPG

IO process thread -> thread -> day5

Tributyl-mercaptophosphane "tBuBrettPhos Pd(allyl)" OTf), 1798782-17-8

typescript40-class类的保护修饰符

Exception (abnormal) and Error (error) difference analysis

PotPlayer实现上班摸鱼电视自由

Harmony OS Date ano UI 】 【 】 the basic operation

shell脚本循环语句

web安全-PHP反序列化漏洞
随机推荐
Pr第四次培训笔记
odps的临时查询能在写sql的时候就给结果一个命名不?
Flink state
轨迹(形状)相似性判断与度量方法
3n+1问题
JDBC与连接池
typescript40-class类的保护修饰符
1058 选择题 (20 分)(C语言)
Get the Ip tool class
Interface Test Framework Practice | Process Encapsulation and Test Case Design Based on Encrypted Interface
Js学习笔记(四)
UV decomposition of biotin - PEG2 - azide | CAS: 1192802-98-4 biotin connectors
-最高分-
【 Harmony OS 】 【 ano UI 】 lightweight data storage
高可用 两地三中心
0.ROS常用命令
Alienware上线首个数字时装AR试穿体验
presto安装部署教程
shell脚本循环语句
flask 面试题 问题