当前位置:网站首页>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;
}
边栏推荐
- 提高效率 Or 增加成本,开发人员应如何理解结对编程?
- SSH access control, blocking the IP when logging in repeatedly to prevent brute force cracking
- pyQt界面制作(登录+跳转页面)
- 泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
- 一文了解微分段应用场景与实现机制
- Plane vector addition
- 天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库
- Sword finger offer 28 Symmetric binary tree
- String reverse order
- ZABBIX saves the page blank after adding calculated items
猜你喜欢
【北大青鸟昌平校区】互联网行业中,哪些岗位越老越吃香?
Protobuf and grpc
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
Showmebug entered Tencent conference, opening the era of professional technical interview
Timecho of Tianmou technology completed an angel round financing of nearly 100 million yuan to create a native timing database of the industrial Internet of things
Jiuyi cloud black free encryption free version source code
ConstraintLayout 的使用
Understand the application scenario and implementation mechanism of differential segment
556. 下一个更大元素 III
Understanding of closures
随机推荐
7-4 BCD decryption (10 points)
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
Adc128s022 ADC Verilog design and Implementation
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
中国PETG市场预测及战略研究报告(2022版)
Too many files with unapproved license
Selective sorting
剑指 Offer 28. 对称的二叉树
Puzzle (016.4) domino effect
泰凌冲刺科创板:拟募资13亿 国家大基金与小米长江是股东
Analysis of gene family characteristics - chromosome location analysis
7-19 check denomination (solve binary linear equation)
X86 assembly language - Notes from real mode to protected mode
Stop asking yourself if you are suitable for software testing
String substitution
Programming language: the essence of type system
7-24 reduction of the simplest fraction (rolling Division)
Some concepts about agile
Four data flows and cases of grpc