利用数学函数库和两个for循环解题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int n,i,j,sum=0…… 题解列表 2025年11月03日 0 点赞 1 评论 176 浏览 评分:0.0
3个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<math.h>#include<stdio.h>int main(){ int i,j,k; doub…… 题解列表 2025年11月03日 0 点赞 0 评论 244 浏览 评分:0.0
使用冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; &nbs…… 题解列表 2025年11月03日 0 点赞 0 评论 178 浏览 评分:0.0
两个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,sum,n; scanf(&…… 题解列表 2025年11月03日 5 点赞 1 评论 271 浏览 评分:0.0
哪里有那么复杂啊 摘要:解题思路:先吃一半,再吃1个注意事项:第N天的时候想吃,只剩一个了,就是还没有吃,逆向操作的话,循环N-1次即可参考代码:#include<stdio.h>int main(){ int …… 题解列表 2025年11月03日 3 点赞 0 评论 241 浏览 评分: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 评论 114 浏览 评分:0.0
1147:角谷猜想 摘要:解题思路:注意事项:参考代码: 方法一:#include<stdio.h>int main(){ int num; scanf("%d&quo…… 题解列表 2025年11月04日 0 点赞 0 评论 145 浏览 评分:0.0
T1027-自定义函数处理最大公约数与最小公倍数--三行解决(两种方法) 摘要:解题思路:注意事项:参考代码:#第一种方法defgcd(a,b):whileb!=0…… 题解列表 2025年11月04日 0 点赞 0 评论 233 浏览 评分:0.0
T1028-自定义函数求一元二次方程--步骤清晰 摘要:解题思路:注意事项:参考代码:importmatha,b,c=map(float,input().split())d&n…… 题解列表 2025年11月04日 0 点赞 0 评论 204 浏览 评分:0.0
[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEAP_YEAR(year)\{\ if((year % 4 == 0 &am…… 题解列表 2025年11月04日 0 点赞 0 评论 171 浏览 评分:0.0