当前位置:网站首页>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;
}
边栏推荐
- 7-24 reduction of the simplest fraction (rolling Division)
- Tonybot humanoid robot infrared remote control play 0630
- Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in
- How Facebook moves instagram from AWS to its own server
- Zzuli:1054 monkeys eat peaches
- 光猫超级账号密码、宽带账号密码 获取
- 7-28 monkeys choose King (Joseph problem)
- LNMP环境mail函数不能发送邮件解决
- String substitution
- puzzle(016.4)多米诺效应
猜你喜欢
Zzuli:1053 sine function
Pyqt interface production (login + jump page)
Understand the application scenario and implementation mechanism of differential segment
修改数据库中的记录为什么报这个错
Four data flows and cases of grpc
retrofit
NPM install is stuck with various strange errors of node NPY
Paper sharing: generating playful palettes from images
Luogu p5018 [noip2018 popularization group] symmetric binary tree problem solution
x86汇编语言-从实模式到保护模式 笔记
随机推荐
适用于XP的DDK
tonybot 人形机器人 首次开机 0630
Understand the application scenario and implementation mechanism of differential segment
2021年区域赛ICPC沈阳站J-Luggage Lock(代码简洁)
Selective sorting
7-18 finding the single root of polynomial by dichotomy
556. 下一个更大元素 III : 简单构造模拟题
Programming language: the essence of type system
Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules
动态获取权限
npm install卡住与node-npy的各种奇怪报错
【7.3】146. LRU缓存机制
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
7-3 count the number of words in a line of text
Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in
7-28 monkeys choose King (Joseph problem)
puzzle(016.4)多米诺效应
Detailed explanation of four modes of distributed transaction (Seata)
Paper sharing: generating playful palettes from images