UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#170438#1222. 阴影面积(2)mengxiangjia1000ms1284kbC++221b2023-04-28 23:30:332023-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;
}

详细

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

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'