Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
19619 | 杨为哲 | 【基础题】圆柱体表面积(2) | C++ | Accepted | 2 MS | 808 KB | 161 | 2021-11-16 16:55:07 |
#include <bits/stdc++.h> using namespace std; int main() { double r,h,s,pi=3.1415926; cin>>r>>h; s=2*r*pi*h+r*r*pi*2; printf("%.3f",s); return 0; }