当前位置:网站首页>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;
}边栏推荐
- 又拍云 Redis 的改进之路
- Ink drop typesetting
- Research Report on research and development prospect of China's urea dioxide industry (2022 Edition)
- 威高血液净化冲刺香港:年营收29亿 净利降12.7%
- Uncover the practice of Baidu intelligent test in the field of automatic test execution
- Unity C basic review 28 - delegation with return (p449)
- Implementing redis distributed locks using custom annotations
- 投资reits基金是靠谱吗,reits基金安全吗
- SOFARegistry 源码|数据同步模块解析
- Paper study -- accurate accounting of annual total runoff control rate considering the interannual variation characteristics of rainfall
猜你喜欢

卫龙更新招股书:年营收48亿 创始人刘卫平家族色彩浓厚

Lumiprobe reactive dye cycloalkyne dye: af488 dbco, 5 isomer

Lumiprobe reactive dye miscellaneous dye: BDP FL ceramide

June 27 talk SofiE

Differential equations of satellite motion

他山之石 | 丁香园 医疗领域图谱的构建与应用

两个字的名字如何变成有空格的3个字符的名字

Unity C# 基础复习28——带返回的委托(P449)

Create an API rapid development platform, awesome!

微信公众号—菜单
随机推荐
卫龙更新招股书:年营收48亿 创始人刘卫平家族色彩浓厚
Unity C# 基础复习29——泛型委托(P451)
Informatics Olympiad all in one 2062: movie tickets
You need to know about project procurement management
中国三氧化二砷行业研究与未来预测报告(2022版)
他山之石 | 丁香园 医疗领域图谱的构建与应用
For example, the visual appeal of the live broadcast of NBA Finals can be seen like this?
Const usage
MCS:离散随机变量——Poisson分布
Solution to the problem that the assembly drawing cannot be recognized after the storage position of SolidWorks part drawing is changed
Evaluation index of high concurrency software (website, server interface)
MCS:离散随机变量——Binomial分布
Query function of Excel vlookup
MCS: discrete random variable Poisson distribution
Unity C basic review 28 - delegation with return (p449)
三角函数对应在平面坐标上画圆
投资reits基金是靠谱吗,reits基金安全吗
Lumiprobe reactive dye miscellaneous dye: BDP FL ceramide
卫星运动的微分方程
文本预处理库spaCy的基本使用(快速入门)