当前位置:网站首页>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;
}边栏推荐
- Output student grades
- Too many files with unapproved license
- 7-20 print 99 formula table (format output)
- tonybot 人形机器人 定距移动 代码编写玩法
- 7-22 tortoise and rabbit race (result oriented)
- Statistical capital consonants
- pyQt界面制作(登录+跳转页面)
- Stop asking yourself if you are suitable for software testing
- 洛谷P4047 [JSOI2010]部落划分 题解
- adc128s022 ADC verilog设计实现
猜你喜欢

ShowMeBug入驻腾讯会议,开启专业级技术面试时代

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

7-18 finding the single root of polynomial by dichotomy

protobuf与grpc

Use of constraintlayout

tonybot 人形机器人 红外遥控玩法 0630

MySQL multi table query subquery

Niuke: crossing the river

Showmebug entered Tencent conference, opening the era of professional technical interview

X86 assembly language - Notes from real mode to protected mode
随机推荐
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
7-4 BCD decryption (10 points)
Understanding of closures
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?
Raft agreement
C language,%d% Difference between 2D%2d%02d
Find the sum of the elements of each row of the matrix
Protobuf and grpc
适用于XP的DDK
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
Pyqt interface production (login + jump page)
愉悦资本新双币基金近40亿元完成首次关账
必贝特医药冲刺科创板:年营收97万亏损1.37亿 拟募资20亿
关于敏捷的一些概念
别再问自己适不适合做软件测试了
NPM install is stuck with various strange errors of node NPY
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
Leetcode (4) - - trouver la médiane de deux tableaux ordonnés positifs
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
使用并行可微模拟加速策略学习