Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
4938 | 王冯俊 | 与圆相关的计算 | C++ | 解答错误 | 0 | 0 MS | 252 KB | 221 | 2020-07-25 20:03:21 |
#include<bits/stdc++.h> using namespace std; int main(){ double r,d,c,s,pi=3.14159; scanf("%lf",&r); d=r*2; c=pi*d; s=pi*r*r; printf("%.4lf ",d); printf("%.4lf ",c); printf("%.4lf ",s); return 0; }