当前位置:网站首页>Zzuli:1044 failure rate
Zzuli:1044 failure rate
2022-07-03 14:34:00 【Snake_____】
Title Description
Input n and n Students' grades ( The set of real Numbers ), Output failure rate .
Input
The first line of input is an integer n, The second line is n A real number , Space off .
Output
Output a real number , Indicates the failure rate , The result is reserved 2 Decimal place , Take a line alone .
The sample input Copy
8 98 45 86 79 56 75 90 70
Sample output Copy
0.25
Tips
Be careful , The failure rate is 0 when , Output 0.00
#include <stdio.h>
int main()
{
int i;
double w,x,p=0,sump=0;
scanf("%lf",&sump);
for(i=0;i<sump;i++)
{
scanf("%lf",&x);
if(x<60)
{
p=p+1;
}
}
w=p/sump;
printf("%.2lf",w);
return 0;
}
边栏推荐
- Code writing and playing method of tonybot humanoid robot at fixed distance
- Thread.sleep和TimeUnit.SECONDS.sleep的区别
- tonybot 人形机器人 首次开机 0630
- Find specified characters
- Common commands for getting started with mongodb database
- JVM garbage collector
- Luogu p5194 [usaco05dec]scales s solution
- Eight sorts
- Recent learning summary
- Convert string to decimal integer
猜你喜欢
Tonybot humanoid robot starts for the first time 0630
Paper sharing: generating playful palettes from images
Code writing and playing method of tonybot humanoid robot at fixed distance
修改数据库中的记录为什么报这个错
基因家族特征分析 - 染色体定位分析
Frequently asked questions: PHP LDAP_ add(): Add: Undefined attribute type in
使用并行可微模拟加速策略学习
Accelerating strategy learning using parallel differentiable simulation
pyQt界面制作(登录+跳转页面)
愉悦资本新双币基金近40亿元完成首次关账
随机推荐
Find specified characters
Mongodb index
Recent learning summary
中感微冲刺科创板:年营收2.4亿净亏1782万 拟募资6亿
7-17 crawling worms (break exercise)
String substitution
retrofit
Creation of data table of Doris' learning notes
Add ZABBIX calculation type itemcalculated items
Special research report on the market of lithium battery electrolyte industry in China (2022 Edition)
中国PETG市场预测及战略研究报告(2022版)
7-6 mixed type data format input
MongoDB索引
Address book sorting
dllexport和dllimport
Use of constraintlayout
Tonybot Humanoïde Robot Infrared Remote play 0630
x86汇编语言-从实模式到保护模式 笔记
常见问题之PHP——ldap_add(): Add: Undefined attribute type in
7-9 one way in, two ways out (25 points)