当前位置:网站首页>信息学奥赛一本通2061:梯形面积
信息学奥赛一本通2061:梯形面积
2022-06-29 14:39:00 【冯耀文】
题目来源:http://ybt.ssoier.cn:8088/index.php
时间限制: 1000 ms 内存限制: 65536 KB
提交数: 5550 通过数: 2069
【题目描述】
在梯形中阴影部分面积是150平方厘米,求梯形面积。

【输入】
(无)
【输出】
输出梯形面积(保留两位小数)。
【输入样例】
(无)【输出样例】
(无)知识:三角形面积——>1/2×底×高——S=1/2×d×h
梯形面积——>((上底+下底)×高)/2
由此推出代码
#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;
}边栏推荐
- JS 会有变量提升和函数提升
- 网易严选离线数仓质量建设实践
- What should phpcms do when it sends an upgrade request to the official website when it opens the background home page?
- Opengauss community establishes sig knowledgegraph
- 【牛客网刷题系列 之 Verilog快速入门】~ 移位运算与乘法
- konva系列教程4:图形属性
- 仿头条新闻资讯dz模板 Discuz新闻资讯商业版GBK模板源码
- I log in to the RDB database and prompt that the master account authorization is required. How do I know who to call?
- If I am in Foshan, where can I open an account? Is it safe to open an account online?
- 重磅!2022最新SCI影响因子发布,三大名刊NCS及国内期刊TOP10排名有变化 (内附2022年最新影响因子)
猜你喜欢

Redis installation in windows and Linux Environment

Build your own website (19)

信息学奥赛一本通1194:移动路线

Stm32 mbed tutorial (IV) --pwm

【Try to Hack】vulnhub DC2

网易严选离线数仓质量建设实践

What should phpcms do when it sends an upgrade request to the official website when it opens the background home page?

Draw a slash on a plane coordinate

openGauss社区成立SIG KnowledgeGraph

Transport layer selective ACK
随机推荐
MySQL 数据库 - 通用语法 DDL DML DQL DCL
如果我在佛山,到哪里开户比较好?究竟网上开户是否安全么?
Using polymorphism to realize simple calculator
symfony框架安全组件(security)防火墙配置
openGauss社区成立SIG KnowledgeGraph
Chapter 8 pixel operation of canvas
广州期货正规吗?如果有人喊你用自己的手机登,帮忙开户,安全吗?
宜明昂科冲刺港股:年内亏损7.3亿 礼来与阳光人寿是股东
异步神器CompletableFuture
Whitelabel error page access
Redis installation in windows and Linux Environment
关于项目采购管理,这些你需要知道
卫龙更新招股书:年营收48亿 创始人刘卫平家族色彩浓厚
阿尔兹海默病智能诊断
JS 会有变量提升和函数提升
What should phpcms do when it sends an upgrade request to the official website when it opens the background home page?
Uniapp problem list and experience
信息学奥赛一本通2062:电影票
Kubernetes pod troubleshooting guide
Chinese garbled code output from idea output station