欢迎借鉴,如有错误,望指点 摘要:解题思路:注意事项:参考代码:pi=3.14159def c_l(x,y): z=(pi*y*y*x)/1000 j =20 / z &…… 题解列表 2026年04月25日 0 点赞 0 评论 2 浏览 评分:0.0
Python质因数分解 摘要:非原创参考代码:n=int(input())i=mx=2while(i**2<n): if n%i==0: &nbs…… 题解列表 2026年04月23日 0 点赞 0 评论 22 浏览 评分:0.0
Python解决题目 摘要:解题思路:judge判断det正负值,f负责分类计算和输出注意事项:det是负数时,注意输出参考代码:def f(a,b,c): judge=b**2-4*a*c…… 题解列表 2026年04月23日 0 点赞 0 评论 26 浏览 评分:0.0
C++实现模拟计算器 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; &…… 题解列表 2026年04月23日 0 点赞 0 评论 24 浏览 评分:0.0
C++宏定义闰年判断 摘要:解题思路:闰年:能被4但不能被100整除 或 能被400整除注意事项:宏定义换行要用\参考代码:#include<iostream>using name…… 题解列表 2026年04月23日 0 点赞 0 评论 16 浏览 评分:0.0
Python实现平均年龄 摘要:解题思路:表存储年龄,求和除个数注意事项:n作为n_age的元素不能重复命名给num,即n=int(input())n_age=list(map(int,input().split()))sumAge…… 题解列表 2026年04月23日 0 点赞 0 评论 14 浏览 评分:0.0
Python由边长判断三角形 摘要:解题思路:将三边两两之和与最常边比较,均大于最长边则是三角形的三边注意事项:表作为函数参数参考代码:def max_list(a): mx=a[0] …… 题解列表 2026年04月23日 0 点赞 0 评论 10 浏览 评分:0.0
Python解决最大值问题 摘要:解题思路:定义max函数,输入比较输出注意事项:参考代码:def mx( a, b): if a>=b:  …… 题解列表 2026年04月23日 0 点赞 0 评论 18 浏览 评分:0.0