计算球的体积(Python) 摘要:解题思路:注意事项:使用while循环要加上异常处理块try:……except EOFError:参考代码:importmathwhil…… 题解列表 2025年10月13日 0 点赞 0 评论 33 浏览 评分:0.0
2025.7.16刷题记录 摘要:解题思路:通过while循环进行死循环持续输入 循环条件为scanf("%lf",&d)!=EOF注意事项:EOF为一个特殊常量表示的是 平时用到的ctrl+z…… 题解列表 2025年07月16日 0 点赞 0 评论 247 浏览 评分:0.0
C++简单解法 摘要:解题思路:属于基础题目,重要的是知道如何控制小数点后面的部分的位数注意事项:参考代码:#include<iostream>#include<iomanip>#include&l…… 题解列表 2025年03月03日 0 点赞 0 评论 264 浏览 评分:10.0
计算球体积 摘要:解题思路:注意事项:参考代码:import mathpi=math.pi //导入库while True: &n 题解列表 2024年12月21日 2 点赞 0 评论 673 浏览 评分:0.0
求球的体积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double r,v; while(scanf("%lf",&r)!=EOF) { …… 题解列表 2024年12月05日 3 点赞 0 评论 775 浏览 评分:0.0
1173: 计算球体积 题解 摘要:```c #include #include int main() { double r, a = 0; while (scanf("%lf", &r) != EOF) …… 题解列表 2024年08月06日 0 点赞 0 评论 412 浏览 评分:0.0
1173 计算球的体积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;#define PI 3.1415926int main(){ …… 题解列表 2024年07月08日 0 点赞 0 评论 258 浏览 评分:0.0
计算球体积胡扯版 摘要:解题思路:先看一眼别人的答案注意事项:记得球的体积是三分之四派啊的平方参考代码:#include<stdio.h>#define PI 3.1415926int main(){ float r,…… 题解列表 2024年04月05日 2 点赞 0 评论 332 浏览 评分:0.0
java--study||O.o 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] …… 题解列表 2024年01月04日 0 点赞 0 评论 535 浏览 评分:9.9
计算球体积,认识EOF 摘要:解题思路:注意事项:EOF是End Of File的意思,表示文件结束,无可读取参考代码:#include<stdio.h>#include<math.h>#define PI 3.14159int …… 题解列表 2023年11月30日 0 点赞 0 评论 263 浏览 评分:0.0