当前位置:网站首页>-最低分-
-最低分-
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;
}
边栏推荐
- 业务表解析-余额系统
- Interface Test Framework Practice | Process Encapsulation and Test Case Design Based on Encrypted Interface
- Gradle的安装配置
- 斐讯K2路由编译Padavan华硕固件和心得
- 【Biotin Azide|cas:908007-17-0】Price_Manufacturer
- Talking about GIS Data (6) - Projected Coordinate System
- JS学习笔记(三)
- Coordinate knowledge in digital twin campus scenarios
- typescript39-class类的可见修饰符
- 深度学习入门之GRU
猜你喜欢

Redis6学习笔记

Install IIS services (Internet Information Services (Internet Information Services, abbreviated IIS, Internet Information Services)

Install PostgreSQL on Windows

typescript45-接口之间的兼容性

HarmonyOS应用开发第一次培训

typescript47-函数之间的类型兼容性

Build your own web page on the Raspberry Pi (2)

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

Modified BiotinDIAZO-Biotin-PEG3-DBCO|diazo-biotin-tripolyethylene glycol-diphenylcyclooctyne

Talking about GIS Data (6) - Projected Coordinate System
随机推荐
Flask的简单介绍及使用方法简介
tag单调栈-单调栈预备知识-lt.739. 每日温度
【转】最小描述长度准则MDL(Minimun Description Length)
Modelarts第一次培训
获取Ip工具类
odps的临时查询能在写sql的时候就给结果一个命名不?
用scikit-learn学习谱聚类
力扣561. 数组拆分
1069 微博转发抽奖 (20 分)(C语言)
高可用 两地三中心
2. 两数相加
Fluorescent marker peptides FITC/AMC/FAM/Rhodamine TAMRA/Cy3 / Cy5 / Cy7 - Peptide
1059 C语言竞赛 (20 分)(C语言)
MySql数据库
UV decomposition of biotin - PEG2 - azide | CAS: 1192802-98-4 biotin connectors
-飞机大战-
斐讯K2路由编译Padavan华硕固件和心得
FileZilla 搭建ftp服务器
js implements a bind function
shell script loop statement