UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#190744#1125. 求梯形的面积Ice_ge1000ms1268kbC++206b2023-10-07 12:57:242023-10-07 12:57:25

answer

#include<iostream>
#include<iomanip>
using namespace std;

int main(){
	int a,b,c;
	cin>>a>>b>>c;
	
	double ans=(a+b)*1.0*c/2;
	
	cout<<fixed<<setprecision(2);
	cout<<ans<<endl;
	
	return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 50
Accepted
time: 0ms
memory: 1268kb

input:

3 5 4

output:

16.00

result:

ok single line: '16.00'

Test #2:

score: 50
Accepted
time: 0ms
memory: 1268kb

input:

6 3 7

output:

31.50

result:

ok single line: '31.50'