当前位置:网站首页>Informatics Olympiad all in one 2061: trapezoidal area
Informatics Olympiad all in one 2061: trapezoidal area
2022-06-29 15:13:00 【Fengyaowen】
Title source :http://ybt.ssoier.cn:8088/index.php
The time limit : 1000 ms Memory limit : 65536 KB
Submission number : 5550 Passing number : 2069
【 Title Description 】
In a trapezoid, the area of the shaded part is 150 square centimetre , Find trapezoidal area .

【 Input 】
( nothing )
【 Output 】
Output trapezoidal area ( Keep two decimal places ).
【 sample input 】
( nothing )【 sample output 】
( nothing )knowledge : Triangle area ——>1/2× At the end of × high ——S=1/2×d×h
Trapezoid area ——>(( Top and bottom + Bottom )× high )/2
Hence the code
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double h,s;
h=(150.0*2.0)/15.0;
s=((15.0+25.0)*h)/2.0;
cout<<fixed<<setprecision(2)<<s<<endl;
return 0;
}边栏推荐
- Lumiprobe 点击化学丨非荧光炔烃:己酸STP酯
- 获取Text组件内容的宽度
- Ink drop typesetting
- Paper study -- accurate accounting of annual total runoff control rate considering the interannual variation characteristics of rainfall
- 信息学奥赛一本通2062:电影票
- 材质 动态自发光
- Pytorch two-dimensional multi-channel convolution operation method
- message from server: “Host ‘xxxxxx‘ is blocked because of many connection errors; unblock with ‘m
- Solution to the problem that the assembly drawing cannot be recognized after the storage position of SolidWorks part drawing is changed
- 信息学奥赛一本通1003:对齐输出
猜你喜欢

第九章 APP项目测试(4) 测试工具

Unity C basic review 28 - delegation with return (p449)

Intelligent diagnosis of Alzheimer's disease

EMC surge protection and decoupling design

阿尔兹海默病智能诊断

三角函数对应在平面坐标上画圆

Solution to the problem that the assembly drawing cannot be recognized after the storage position of SolidWorks part drawing is changed

Pytorch two-dimensional multi-channel convolution operation method

MCS:离散随机变量——几何分布

How does a two character name become a three character name with spaces
随机推荐
render后续来了,封装一个表单往表格中添加数据
西北工业大学遭境外电邮攻击
symfony框架安全组件(security)防火墙配置
SOFARegistry 源码|数据同步模块解析
Wei long updated the prospectus: the annual revenue of 4.8 billion founder liuweiping has a strong family color
wieshark抓包mysql协议简单分析
Render follows, encapsulating a form and adding data to the table
Create an API rapid development platform, awesome!
捷氢科技冲刺科创板:拟募资10.6亿 上汽集团是大股东
在平面坐标上画斜线
真正的软件测试人员 =“半个产品+半个开发”?
揭秘百度智能测试在测试自动执行领域实践
中国三氧化二砷行业研究与未来预测报告(2022版)
Chaîne lumineuse libre biovendor κ Et λ) Propriétés chimiques du kit ELISA
MCS:多元随机变量——多项式分布
中国软冰淇淋市场预测与投资前景研究报告(2022版)
使用自定义注解实现Redis分布式锁
Intelligent diagnosis of Alzheimer's disease
卫龙更新招股书:年营收48亿 创始人刘卫平家族色彩浓厚
Chapter IX app project test (the end of this chapter)