T1028-自定义函数求一元二次方程--步骤清晰 摘要:解题思路:注意事项:参考代码:importmatha,b,c=map(float,input().split())d&n…… 题解列表 2025年11月04日 0 点赞 0 评论 136 浏览 评分:0.0
T1027-自定义函数处理最大公约数与最小公倍数--三行解决(两种方法) 摘要:解题思路:注意事项:参考代码:#第一种方法defgcd(a,b):whileb!=0…… 题解列表 2025年11月04日 0 点赞 0 评论 122 浏览 评分:0.0
1147:角谷猜想 摘要:解题思路:注意事项:参考代码: 方法一:#include<stdio.h>int main(){ int num; scanf("%d&quo…… 题解列表 2025年11月04日 0 点赞 0 评论 92 浏览 评分:0.0
T1026-数字逆序输出--两行解决 摘要:解题思路:注意事项:参考代码:num=list(map(int,input().split()))print(''.join(map…… 题解列表 2025年11月04日 0 点赞 0 评论 150 浏览 评分:10.0
用数组进行数字逆序输出 摘要:解题思路:非常简单的用两个循环将数组输入与输出出来注意事项:用空格将打印输出的数组隔开参考代码:#include<stdio.h>int main(){ int arr[10]; int …… 题解列表 2025年11月04日 2 点赞 0 评论 167 浏览 评分:10.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 评论 90 浏览 评分:0.0
哪里有那么复杂啊 摘要:解题思路:先吃一半,再吃1个注意事项:第N天的时候想吃,只剩一个了,就是还没有吃,逆向操作的话,循环N-1次即可参考代码:#include<stdio.h>int main(){ int …… 题解列表 2025年11月03日 1 点赞 0 评论 138 浏览 评分:0.0
两个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,sum,n; scanf(&…… 题解列表 2025年11月03日 3 点赞 1 评论 172 浏览 评分:0.0
使用冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; &nbs…… 题解列表 2025年11月03日 0 点赞 0 评论 113 浏览 评分:0.0
3个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub…… 题解列表 2025年11月03日 0 点赞 0 评论 153 浏览 评分:0.0