编写题解 1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number[10]={0}; for(…… 题解列表 2026年04月04日 0 点赞 0 评论 34 浏览 评分:0.0
编写题解 1129: C语言训练-排序问题(2) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number[10]={0}; for(…… 题解列表 2026年04月04日 0 点赞 0 评论 19 浏览 评分:0.0
为什么你写的答案逻辑正确但第一个测试点错误只得了50分 摘要:解题思路:省流:不要用fget函数注意事项:如果你的代码用了fget函数,你可以在它的在线测试里面运行,然后你就会惊喜地发现答案不对,为什么呢?我问了ai,ai给我的解释是:fgets会在…… 题解列表 2026年04月04日 2 点赞 0 评论 56 浏览 评分:10.0
1026使用stack相关语句完成逆序输出【桐人k】 摘要:解题思路:注意事项:涉及两种类型的变量,分别string,int,定义栈stack(头文件要包含include<stack>)栈的定义:  …… 题解列表 2026年04月04日 0 点赞 0 评论 37 浏览 评分:0.0
蓝桥杯2025年第十六届省赛真题-最短距离贪心算法 摘要:解题思路:贪心思想,每个电器一定要找离自己最近的插头注意事项:对给出的位置进行排序,不知道具体位置,加绝对值参考代码:#include<bits/stdc++.h>using namesp…… 题解列表 2026年04月04日 0 点赞 0 评论 131 浏览 评分:0.0
1026使用for循环的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; for(int i=0;i<…… 题解列表 2026年04月04日 0 点赞 0 评论 47 浏览 评分:0.0
1014的递归写法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long fs(long long n)//定义一个函数fs,功能是对计…… 题解列表 2026年04月04日 0 点赞 0 评论 36 浏览 评分:0.0
1011辗转相除法的运用 摘要:解题思路:辗转相除法的本质是:两个数的最大公约数,是其中较小的那个数和两数相除余数的最大公约数,不断嵌套,当余数为零时,那个较大数就是最大公约数最大公倍数:两数积/两数最大公约数,设m,n, m = …… 题解列表 2026年04月04日 0 点赞 0 评论 60 浏览 评分:0.0
1004看清递归本质,尽量规避硬模拟,撰写动态函数 摘要:解题思路:#include<iostream>using namespace std;int main(){ int year[55]; …… 题解列表 2026年04月04日 0 点赞 0 评论 65 浏览 评分:0.0
1005注意头文件的引用以及取位格式kirito 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ float f,c; cin>>f…… 题解列表 2026年04月03日 1 点赞 0 评论 49 浏览 评分:10.0