3 solutions
-
0
#include <bits/stdc++.h>//万能头文件,但不是万能的~ using namespace std;//标准命名空间。 const double PI = 3.14159; //定义圆周率常量(π) double r; //定义半径 int main() { cin >> r;//输入r printf("%.4lf ", r * 2.0); //直径 printf("%.4lf ", 2.0 * r * PI); //周长 printf("%.4lf ", r * r * PI); //面积 return 0; }
Information
- ID
- 315
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 6
- Tags
- # Submissions
- 644
- Accepted
- 220
- Uploaded By