UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#185513#1118. 求三角形的面积luojianwei2216251000ms1272kbC++161b2023-09-30 08:28:582023-09-30 08:29:00

answer

#include <bits/stdc++.h>
using namespace std;

int main() {
	int a, h;
	cin >> a >> h;
	cout << fixed << setprecision(2) << a * h * 1.0 / 2;
	return 0;
}

详细

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

Test #1:

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

input:

3 4

output:

6.00

result:

ok single line: '6.00'

Test #2:

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

input:

17 17

output:

144.50

result:

ok single line: '144.50'