1173: 计算球体积
摘要:解题思路:注意事项:参考代码:import mathwhile True: try: r = float(input()) pi = math.pi ……
【计算球体积】 (Java代码)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[]ages){ ……
【计算球体积】 (Java代码)233333
摘要:解题思路:注意事项:参考代码:import java.util.*;public class The174 {public static void main(String[]args){ Scanne……
1173一行解(Python)
摘要:解题思路:注意事项:参考代码:import mathimport sysfor line in sys.stdin:print('{:.2f}'.format((4/3)*math.p……
【计算球体积】 (C语言代码)
摘要:#include<stdio.h>
#include<math.h>
const double PI = acos(-1);
int main(){
double r;
……
编写题解 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……
题解 1173: 计算球体积
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,V; while(~scanf("%lf",&x)) ……