ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#168089 | #1118. 求三角形的面积 | luojianwei2216 | 50 | 0ms | 1272kb | C++ | 189b | 2023-01-28 19:33:24 | 2023-01-28 19:33:26 |
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
double ans = 0.0;
cin >> a >> b;
ans = a * b / 2;
cout << fixed << setprecision(2) << ans;
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: 0
Wrong Answer
time: 0ms
memory: 1272kb
input:
17 17
output:
144.00
result:
wrong answer 1st lines differ - expected: '144.50', found: '144.00'