当前位置:网站首页>Zzuli:1059 highest score
Zzuli:1059 highest score
2022-07-03 14:35:00 【Snake_____】
Title Description
Enter the grades of a group of students ( Integers ), Output highest score .
Input
The input contains multiple non negative integers and a negative integer . This negative number is not a valid result , Only indicates the end of input .
Output
Output an integer , The highest score . Take a line alone .
The sample input Copy
7 6 5 9 2 -1
Sample output Copy
9
#include <stdio.h>
int main()
{
int max=0,fen;
while(1)
{
scanf("%d",&fen);
if(fen<0)
break;
if(fen>max)
max=fen;
}
printf("%d",max);
return 0;
}边栏推荐
- Get permissions dynamically
- SSH访问控制,多次失败登录即封掉IP,防止暴力破解
- 7-16 find the set of integers that meet the given conditions
- 数学常数表 by q779
- Luogu p5536 [xr-3] core city solution
- Zzuli: cumulative sum of 1050 factorials
- Zzuli:1054 monkeys eat peaches
- 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
- Tiantu investment sprint Hong Kong stocks: asset management scale of 24.9 billion, invested in xiaohongshu and Naixue
- X86 assembly language - Notes from real mode to protected mode
猜你喜欢

论文分享:Generating Playful Palettes from Images

Jiuyi cloud black free encryption free version source code

Puzzle (016.3) is inextricably linked

Paper sharing: generating playful palettes from images

编程语言:类型系统的本质

How to query the baby category of tmall on Taobao

Zhonggan micro sprint technology innovation board: annual revenue of 240million, net loss of 17.82 million, proposed to raise 600million

天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库

Why is this error reported when modifying records in the database
![洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解](/img/89/da1a3a38e02671628f385de0f30369.png)
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
随机推荐
Luogu p5536 [xr-3] core city solution
7-14 sum integer segments (C language)
Analysis of gene family characteristics - chromosome location analysis
Showmebug entered Tencent conference, opening the era of professional technical interview
7-17 crawling worms (break exercise)
Luogu p5194 [usaco05dec]scales s solution
Etcd cluster permission management and account password usage
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
7-1 positive integer a+b (15 points)
US stock listing of polar: how can the delivery of 55000 units support the valuation of more than 20billion US dollars
7-22 tortoise and rabbit race (result oriented)
Zzuli:1055 rabbit reproduction
Code writing and playing method of tonybot humanoid robot at fixed distance
亚马逊、速卖通、Lazada、Shopee、eBay、wish、沃尔玛、阿里国际、美客多等跨境电商平台,测评自养号该如何利用产品上新期抓住流量?
Common shortcut keys in PCB
Programming language: the essence of type system
J-luggage lock of ICPC Shenyang station in 2021 regional games (simple code)
Understand the application scenario and implementation mechanism of differential segment
Although not necessarily the best, it must be the hardest!
Protobuf and grpc