3 条题解
- 1
信息
- ID
- 307
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- (无)
- 递交数
- 537
- 已通过
- 186
- 上传者
#include
using namespace std;
int main() { double a, b, h, s; scanf("%lf%lf%lf",&a,&b,&h); s = (a+b)*h/2; printf("%.3f\n", s); return 0; } 刚学scanfprintf()不太熟练
#include using namespace std; int main() { double a,b,h,s; scanf("%lf%lf%lf",&a,&b,&h); s=(a+b)*h/2; printf("%.3f\n",s); return 0; }