两个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,sum,n; scanf(&…… 题解列表 2025年11月03日 7 点赞 1 评论 482 浏览 评分:0.0
哪里有那么复杂啊 摘要:解题思路:先吃一半,再吃1个注意事项:第N天的时候想吃,只剩一个了,就是还没有吃,逆向操作的话,循环N-1次即可参考代码:#include<stdio.h>int main(){ int …… 题解列表 2025年11月03日 4 点赞 0 评论 551 浏览 评分: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 评论 253 浏览 评分:0.0
T1027-自定义函数处理最大公约数与最小公倍数--三行解决(两种方法) 摘要:解题思路:注意事项:参考代码:#第一种方法defgcd(a,b):whileb!=0…… 题解列表 2025年11月04日 0 点赞 0 评论 455 浏览 评分:0.0
T1028-自定义函数求一元二次方程--步骤清晰 摘要:解题思路:注意事项:参考代码:importmatha,b,c=map(float,input().split())d&n…… 题解列表 2025年11月04日 0 点赞 0 评论 366 浏览 评分:0.0
1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define MAX(a, b, c)\{\ printf("%.3lf"…… 题解列表 2025年11月04日 0 点赞 0 评论 291 浏览 评分:0.0
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[30…… 题解列表 2025年11月04日 0 点赞 0 评论 304 浏览 评分:0.0
整数序列的元素最大跨度值 ———— STL解法 摘要:解题思路:使用具有C++特色的vector<>容器来代替数组使用,同时使用迭代器,调用STL…… 题解列表 2025年11月04日 0 点赞 0 评论 187 浏览 评分:0.0
慢慢看,慢慢理解,你也能做到, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=0,n=0;int answer=0;int main(){ …… 题解列表 2025年11月04日 1 点赞 0 评论 358 浏览 评分:0.0