梯形面积
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给出一个梯形的上底a、下底b、高h,计算出这个梯形的面积。梯形的面积计算公式为: (a+b)*h/2;
输入格式
一行,三个正整数,分别为上底、下底、高。
输出格式
一行,为梯形的面积
输入输出样例
输入 #1
3 4 2
输出 #1
7
说明/提示
数据保证高为偶数,且所有数据都小于1000。
语法组5月月赛
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2026-5-24 19:00
- End at
- 2026-6-2 23:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 13