ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#170438 | #1222. 阴影面积(2) | mengxiangjia | 100 | 0ms | 1284kb | C++ | 221b | 2023-04-28 23:30:33 | 2023-04-28 23:30:34 |
answer
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
double a,b,c,s;
const double PI = 3.14159;
cin>>a>>b>>c;
s=((a+b)*c)/2-(c/2)*(c/2)*PI;
printf("%.2f",s);
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 50
Accepted
time: 0ms
memory: 1284kb
input:
3 7 4
output:
7.43
result:
ok single line: '7.43'
Test #2:
score: 50
Accepted
time: 0ms
memory: 1284kb
input:
14 20 15
output:
78.29
result:
ok single line: '78.29'