UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#170425#1222. 阴影面积(2)luojianwei22161000ms1332kbC++291b2023-04-23 14:01:482023-04-23 14:01:48

answer

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

int main() {
	double a, b, c, Tarea;
	double Yarea, Aarea;
	cin >> a >> b >> c;
	Tarea = (a + b) * c / 2;
	double r = c / 2;
	Yarea = 3.14159 * r * r;
	Aarea = Tarea - Yarea;
	cout << fixed << setprecision(2) << Aarea;
	return 0;
}

详细

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

Test #1:

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

input:

3 7 4

output:

7.43

result:

ok single line: '7.43'

Test #2:

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

input:

14 20 15

output:

78.29

result:

ok single line: '78.29'