当前位置:网站首页>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;
}边栏推荐
- Time conversion ()
- Adc128s022 ADC Verilog design and Implementation
- Although not necessarily the best, it must be the hardest!
- 2021年区域赛ICPC沈阳站J-Luggage Lock(代码简洁)
- Solr series of full-text search engines - basic principles of full-text search
- Programming language: the essence of type system
- Statistical capital consonants
- How Facebook moves instagram from AWS to its own server
- Find the sum of the elements of each row of the matrix
- JVM garbage collector
猜你喜欢

NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon

Tonybot humanoid robot checks the port and corresponds to port 0701

retrofit

puzzle(016.4)多米诺效应

Sub GHz wireless solution Z-Wave 800 Series zg23 SOC and zgm230s modules

ConstraintLayout 的使用

npm install卡住与node-npy的各种奇怪报错

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

NPM install is stuck with various strange errors of node NPY

一文了解微分段应用场景与实现机制
随机推荐
Add ZABBIX calculation type itemcalculated items
一文了解微分段应用场景与实现机制
Tonybot humanoid robot checks the port and corresponds to port 0701
Polestar美股上市:5.5万台交付如何支持得起超200亿美元估值
Jiuyi cloud black free encryption free version source code
分布式事务(Seata) 四大模式详解
动态获取权限
Ultra simple mobile map development
Luogu p4047 [jsoi2010] tribal division solution
Puzzle (016.3) is inextricably linked
Tailing rushes to the scientific and Technological Innovation Board: it plans to raise 1.3 billion, and Xiaomi Changjiang is the shareholder
npm install卡住与node-npy的各种奇怪报错
Doris学习笔记之数据表的创建
Stop asking yourself if you are suitable for software testing
7-6 mixed type data format input
retrofit
Output student grades
Puzzle (016.4) domino effect
PCB中常用快捷键
Thread.sleep和TimeUnit.SECONDS.sleep的区别