ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#162265 | #1118. 求三角形的面积 | xeh | 100 | 0ms | 1288kb | C++ | 151b | 2022-10-14 21:37:25 | 2022-10-14 21:37:26 |
answer
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
double n,s,d;
cin>>s>>d;
n=s*d/2;
printf("%.2lf",n);
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 50
Accepted
time: 0ms
memory: 1284kb
input:
3 4
output:
6.00
result:
ok single line: '6.00'
Test #2:
score: 50
Accepted
time: 0ms
memory: 1288kb
input:
17 17
output:
144.50
result:
ok single line: '144.50'