题解 1173: 计算球体积
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,V; while(~scanf("%lf",&x)) ……
1173: 计算球体积
摘要:解题思路:注意事项:参考代码:import mathwhile True: try: r = float(input()) pi = math.pi ……
1173一行解(Python)
摘要:解题思路:注意事项:参考代码:import mathimport sysfor line in sys.stdin:print('{:.2f}'.format((4/3)*math.p……
编写题解 1173: 计算球体积
摘要:解题思路:注意事项:参考代码:while True:
try:
r=float(input())
print('%.3f'%((4/3)*……
Hifipsysta-1173-计算球体积(C++代码)
摘要:```cpp
#include
#include
using namespace std;
float compute_volume(float r){
return (4.0/……
1173: 计算球体积
摘要:解题思路:先进行一个宏定义,然后,再在一个while(scanf("%f",&a)!=EOF)中进行多组输入,最后,在while循环中输出。注意事项:参考代码:#include<stdio.h>#de……
计算球体积-题解(C++代码)
摘要:解题思路:循环输入输出,直到EOF(end of file)注意事项:double v=4.0/3.0 * 3.1415926 * (r*r*r);参考代码:/*
*/
#include <c……
【计算球体积】 (C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415926int main(){ double x,m,sum; while(scanf("%lf",&x……