UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#168091#1118. 求三角形的面积luojianwei22161001ms1332kbC++192b2023-01-28 19:34:432023-01-28 19:34:44

answer

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

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

Details

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

Test #1:

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

input:

3 4

output:

6.00

result:

ok single line: '6.00'

Test #2:

score: 50
Accepted
time: 1ms
memory: 1332kb

input:

17 17

output:

144.50

result:

ok single line: '144.50'