当前位置:网站首页>Best performing C language
Best performing C language
2022-04-21 18:18:00 【Big dish color】
Best performance
A company has n Branches , At the end of the year, the performance of each branch should be ( Positive but negative ) Make statistics , Please write a program to find the best performance and output its performance , The real data is double type .
Input format :
The first One Line input n Value ;
The first Two Line input n A real number ( Positive but negative ), Separate... With spaces .
Output format :
To keep two Output in decimal places .
sample input :
5
5.6 7.8 10.4 6.7 9.4
sample output :
10.40
Code :
#include<stdio.h>
int main()
{
int n;
double m=-999999,max;
scanf("%d",&n);
max=m;
for(int i=0;i<n;i++)
{
scanf("%lf",&m);
if(max<m)
max=m;
}
printf("%.2lf\n",max);
return 0;
}
版权声明
本文为[Big dish color]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211816372007.html
边栏推荐
- Advanced formula 48 of C language: principle of function design
- 最基本的JDBC模板及数据库乱码处理
- 靶机渗透练习77-DC9
- Interface
- Build a short video platform and copy a demo of the login interface
- [pytorch image classification] RESNET network structure
- 华为、TCL、大疆
- 靶机渗透练习80-Momentum:1
- 移植openharmony之添加wifi驱动
- Failed to install network card driver (resolved)
猜你喜欢

Interface

Huawei, TCL, Dajiang

历经4轮2小时,终于斩下美团offer!

靶机渗透练习70-DC2

laravel-soar(2.x) - 自动监控输出 SQL 优化建议、辅助 laravel 应用 SQL 优化

【NPJ|数字医药】医学影像的机器学习:方法学的失败和对未来的建议

靶机渗透练习73-DC5

你已经用 SharedPrefrence 的 apply() 替换 commit() 了吗?

Huawei level 18 Daniel collates and summarizes: microservice design and distributed service framework principle practice document

随笔小杂记(六)——tqdm进度条显示出现多余行
随机推荐
Tooltip component: judge whether to display tooltip according to whether the content overflows
接口
ansible简单使用示例
华为云GaussDB(for Influx)揭密第六期——数据分级存储
String(一个特殊的数据类型)
统计组成的四位数 C语言
[intensive reading of Thesis] stable linear structures and seam measurements for parallelax image stitching
MYCAT horizontal sub table (E-R table)
[pytorch image classification] RESNET network structure
Dry goods | who understands this article and can get stuck playing games?
The MySQL database in MySQL is missing
Huawei level 18 Daniel collates and summarizes: microservice design and distributed service framework principle practice document
找出相等差值的卡片 (20 分) C语言
autoware.auto高精地图 Lanelet2资料汇总
靶机渗透练习79-Venom
启牛app证券账户安全吗?谁在这开了?
Advanced formula 48 of C language: principle of function design
fastjson自动升级成fastjson2后 IDEA开发环境正常 打成jar包发布生成环境后报错异常 pom.xml的version自动升级导致
Mycat水平分表(E-R表)
Q:excel制作折线图