ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#170425 | #1222. 阴影面积(2) | luojianwei2216 | 100 | 0ms | 1332kb | C++ | 291b | 2023-04-23 14:01:48 | 2023-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'