T1028-自定义函数求一元二次方程--步骤清晰 摘要:解题思路:注意事项:参考代码:import matha, b, c = map(float, input().split())d = b**2 - 4*a*c # 计算判别式if d &g…… 题解列表 2025年11月04日 0 点赞 0 评论 8 浏览 评分:0.0
T1027-自定义函数处理最大公约数与最小公倍数--三行解决(两种方法) 摘要:解题思路:注意事项:参考代码:#第一种方法def gcd(a, b): while b != 0: a, b = b, …… 题解列表 2025年11月04日 0 点赞 0 评论 5 浏览 评分:0.0
1147:角谷猜想 摘要:解题思路:注意事项:参考代码: 方法一:#include<stdio.h>int main(){ int num; scanf("%d&quo…… 题解列表 2025年11月04日 0 点赞 0 评论 5 浏览 评分:0.0
T1026-数字逆序输出--两行解决 摘要:解题思路:注意事项:参考代码:num = list(map(int, input().split()))print(' '.join(map(str, num[::-1])))…… 题解列表 2025年11月04日 0 点赞 0 评论 6 浏览 评分:0.0
用数组进行数字逆序输出 摘要:解题思路:非常简单的用两个循环将数组输入与输出出来注意事项:用空格将打印输出的数组隔开参考代码:#include<stdio.h>int main(){ int arr[10]; int …… 题解列表 2025年11月04日 0 点赞 0 评论 4 浏览 评分:0.0
自己构思的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],sum=0,pj,j; for(j=0;j<=9;j++) { scan…… 题解列表 2025年11月04日 0 点赞 0 评论 9 浏览 评分:0.0
哪里有那么复杂啊 摘要:解题思路:先吃一半,再吃1个注意事项:第N天的时候想吃,只剩一个了,就是还没有吃,逆向操作的话,循环N-1次即可参考代码:#include<stdio.h>int main(){ int …… 题解列表 2025年11月03日 0 点赞 0 评论 18 浏览 评分:0.0
两个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,sum,n; scanf(&…… 题解列表 2025年11月03日 0 点赞 0 评论 15 浏览 评分:0.0
使用冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; &nbs…… 题解列表 2025年11月03日 0 点赞 0 评论 31 浏览 评分:0.0
3个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub…… 题解列表 2025年11月03日 0 点赞 0 评论 33 浏览 评分:0.0