当前位置:网站首页>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;
}边栏推荐
- NPM install is stuck with various strange errors of node NPY
- Pyqt interface production (login + jump page)
- Zabbix添加Calculated items后保存页面成空白
- Paper sharing: generating playful palettes from images
- 表单文本框的使用(一) 选择文本
- Similarities and differences between Allegro, OrCAD, net alias, port, off page connector and how to select them
- 洛谷P3065 [USACO12DEC]First! G 题解
- npm install卡住与node-npy的各种奇怪报错
- Protobuf and grpc
- 添加Zabbix计算类型项目Calculated items
猜你喜欢

Tonybot humanoid robot checks the port and corresponds to port 0701

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线

Eight sorts

常见问题之PHP——ldap_add(): Add: Undefined attribute type in

Use of constraintlayout

Puzzle (016.4) domino effect

分布式事务(Seata) 四大模式详解

Tonybot humanoid robot starts for the first time 0630

US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars

论文分享:Generating Playful Palettes from Images
随机推荐
Address book sorting
The mail function of LNMP environment cannot send mail
提高效率 Or 增加成本,开发人员应如何理解结对编程?
Selective sorting
7-19 check denomination (solve binary linear equation)
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
Statistical capital consonants
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
pyQt界面制作(登录+跳转页面)
Thread.sleep和TimeUnit.SECONDS.sleep的区别
Thinking about the arrangement problem in the backtracking problem (leetcode questions 46 and 47)
China PETG market forecast and Strategic Research Report (2022 Edition)
Although not necessarily the best, it must be the hardest!
7-18 finding the single root of polynomial by dichotomy
天图投资冲刺港股:资产管理规模249亿 投了小红书与奈雪
puzzle(016.3)千丝万缕
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
7-4 BCD decryption (10 points)
中国锂电池电解液行业市场专项调研报告(2022版)
tonybot 人形机器人 首次开机 0630