计算球体积胡扯版 摘要:解题思路:先看一眼别人的答案注意事项:记得球的体积是三分之四派啊的平方参考代码:#include<stdio.h>#define PI 3.1415926int main(){ float r,…… 题解列表 2024年04月05日 2 点赞 0 评论 670 浏览 评分:0.0
题解 1173: 计算球体积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,V; while(~scanf("%lf",&x)) …… 题解列表 2021年11月11日 0 点赞 0 评论 941 浏览 评分:0.0
计算球体积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415#include<math.h>int main(){ double r,v; while…… 题解列表 2022年12月22日 0 点赞 0 评论 545 浏览 评分:0.0
1173: 计算球体积 摘要:解题思路:注意事项:参考代码:import mathwhile True: try: r = float(input()) pi = math.pi …… 题解列表 2022年11月24日 0 点赞 0 评论 673 浏览 评分:0.0
1173一行解(Python) 摘要:解题思路:注意事项:参考代码:import mathimport sysfor line in sys.stdin:print('{:.2f}'.format((4/3)*math.p…… 题解列表 2022年11月05日 0 点赞 0 评论 738 浏览 评分:0.0
编写题解 1173: 计算球体积 摘要:解题思路:注意事项:参考代码:while True: try: r=float(input()) print('%.3f'%((4/3)*…… 题解列表 2022年02月17日 0 点赞 0 评论 840 浏览 评分:0.0
Hifipsysta-1173-计算球体积(C++代码) ```cpp#include#includeusingnamespacestd;floatcompute_volume(floatr){return(4.0/3.0)*M_PI*pow(r,3);}intmain(){floatr;while(cin>>r){floatresult=compute_v 题解列表 2022年02月05日 0 点赞 0 评论 579 浏览 评分:0.0
1173: 计算球体积 摘要:解题思路:先进行一个宏定义,然后,再在一个while(scanf("%f",&a)!=EOF)中进行多组输入,最后,在while循环中输出。注意事项:参考代码:#include<stdio.h>#de…… 题解列表 2021年12月03日 0 点赞 0 评论 1043 浏览 评分:0.0
计算球体积-题解(C++代码) 摘要:解题思路:循环输入输出,直到EOF(end of file)注意事项:double v=4.0/3.0 * 3.1415926 * (r*r*r);参考代码:/* */ #include <c…… 题解列表 2020年08月26日 0 点赞 0 评论 902 浏览 评分:0.0
【计算球体积】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415926int main(){ double x,m,sum; while(scanf("%lf",&x…… 题解列表 2019年04月21日 0 点赞 0 评论 854 浏览 评分:0.0