当前位置:网站首页>Zzuli:1043 max
Zzuli:1043 max
2022-07-03 14:33:00 【Snake_____】
Enter an integer n and n It's an integer , Output this n The maximum number of integers .
There are two lines of input : The first line is a positive integer n, The second line is n It's an integer .
The output contains an integer , namely n Maximum number , Take a line alone .
The sample input Copy
4 3 7 5 6
Sample output Copy
7
#include <stdio.h>
int main()
{
int n,a,i,t;
scanf("%d",&n);
scanf("%d",&t);
for(i=1;i<n;i++)
{
scanf("%d",&a);
if(t<a) t=a;
}
printf("%d\n",t);
return 0;
}
边栏推荐
- 数学常数表 by q779
- Use of constraintlayout
- 分布式事务(Seata) 四大模式详解
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- 一文了解微分段应用场景与实现机制
- 7-18 finding the single root of polynomial by dichotomy
- Add ZABBIX calculation type itemcalculated items
- Eight sorts
- 修改数据库中的记录为什么报这个错
- Some concepts about agile
猜你喜欢
表单文本框的使用(一) 选择文本
npm install卡住与node-npy的各种奇怪报错
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
tonybot 人形機器人 紅外遙控玩法 0630
Happy capital new dual currency fund nearly 4billion yuan completed its first account closing
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Sword finger offer 28 Symmetric binary tree
How to query the baby category of tmall on Taobao
Eight sorts
愉悦资本新双币基金近40亿元完成首次关账
随机推荐
PCB中常用快捷键
Protobuf and grpc
adc128s022 ADC verilog设计实现
Creation of data table of Doris' learning notes
洛谷P5194 [USACO05DEC]Scales S 题解
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
LNMP环境mail函数不能发送邮件解决
tonybot 人形机器人 查看端口并对应端口 0701
7-24 reduction of the simplest fraction (rolling Division)
Niuke: crossing the river
Analysis of gene family characteristics - chromosome location analysis
Doris学习笔记之数据表的创建
How to query the baby category of tmall on Taobao
7-20 print 99 formula table (format output)
一文了解微分段应用场景与实现机制
牛客网:过河卒
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
X86 assembly language - Notes from real mode to protected mode
中国PETG市场预测及战略研究报告(2022版)