当前位置:网站首页>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;
}边栏推荐
- konva系列教程4:图形属性
- 两个字的名字如何变成有空格的3个字符的名字
- Lumiprobe reactive dye miscellaneous dye: BDP FL ceramide
- Biovendor free light chain( κ and λ) Chemical properties of ELISA Kit
- Lumiprobe reactive dye cycloalkyne dye: af488 dbco, 5 isomer
- 第九章 APP项目测试(4) 测试工具
- 信息学奥赛一本通1000:入门测试题目
- wieshark抓包mysql协议简单分析
- ModStartBlog 现代化个人博客系统 v5.2.0 主题开发增强,新增联系方式
- 技术沟通遇到3个为什么背后的逻辑
猜你喜欢

知识点:PCB线路板布线都有哪些诀窍?

Lumiprobe reactive dye - amino dye: cyanine 5 amine

wieshark抓包mysql协议简单分析

Illustration of Ctrip quarterly report: net revenue of RMB 4.1 billion has been "halved" compared with that before the outbreak

Take another picture of cloud redis' improvement path

Huali biology rushes to the scientific innovation board: the annual revenue is RMB 226million and it is planned to raise RMB 800million

Lumiprobe 点击化学丨非荧光炔烃:己酸STP酯

如临现场的视觉感染力,NBA决赛直播还能这样看?

MySQL的json 数组操作 json_array_append、json_array_insert

CKS CKA CKAD 将终端更改为远程桌面
随机推荐
Whitelabel error page access
Query function of Excel vlookup
MCS:离散随机变量——Binomial分布
Konva series Tutorial 4: drawing attributes
Research Report on research and development prospect of China's urea dioxide industry (2022 Edition)
Uncover the practice of Baidu intelligent test in the field of automatic test execution
Huali biology rushes to the scientific innovation board: the annual revenue is RMB 226million and it is planned to raise RMB 800million
华曙高科冲刺科创板:拟募资6.6亿 实控人许小曙父子均为美国籍
LeetCode-1188. 设计有限阻塞队列
Lumiprobe click chemistry - non fluorescent alkyne: hexanoic acid STP ester
Unity C # basic review 26 - first acquaintance Commission (p447)
又拍云 Redis 的改进之路
信息学奥赛一本通1000:入门测试题目
Unity C basic review 27 - delegation example (p448)
华理生物冲刺科创板:年营收2.26亿 拟募资8亿
ROS 笔记(10)— launch 文件启动
Knowledge points: what are the know-how of PCB wiring?
MCS:离散随机变量——Poisson分布
LeetCode笔记:Biweekly Contest 81
我 35 岁,可以转行当程序员吗?