注意第一个数为最大数的特殊情况! 摘要:解题思路:先把最小的数和第一个数对换,再把最大的数和最后一个数对换注意事项:两个操作不要同时进行,依次进行参考代码:#include<stdio.h>void input(long lon…… 题解列表 2025年12月04日 0 点赞 0 评论 3 浏览 评分:0.0
你就说对不对吧 摘要:#include<stdio.h>int main(void){ printf("153\n370\n371\n407"); &n…… 题解列表 2025年12月04日 0 点赞 0 评论 9 浏览 评分:0.0
1347: 八皇后问题 摘要:解题思路:注意事项:dfs函数中一定要写col[col_idx]=false; diag1[d1]=false;&nb…… 题解列表 2025年12月04日 0 点赞 0 评论 9 浏览 评分:0.0
3035: LETTERS最多能走过的不同字母的个数 摘要:解题思路:注意事项:dfs函数中要注意最后一定要写ch_flag[ch_idx]=false;防止回溯的时候出现错误参考代码:#include<stdio.h>#include<st…… 题解列表 2025年12月04日 0 点赞 0 评论 9 浏览 评分:0.0
这题不难,认真看认真学 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; //n是数,a保存行,b保存列 …… 题解列表 2025年12月03日 0 点赞 0 评论 10 浏览 评分:0.0
刷题记录2025/12/3 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,sum=0; scanf("%d %d",&m,&a…… 题解列表 2025年12月03日 0 点赞 0 评论 12 浏览 评分:0.0
刷题记录2025/12/3 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a,b,c,A=0,B=0,C=0,sum; scanf("%d\n&qu…… 题解列表 2025年12月03日 0 点赞 0 评论 12 浏览 评分:0.0
刷题记录2025/12/3 2797: 最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n,i,max=0; scanf("%d\n",&n); f…… 题解列表 2025年12月03日 0 点赞 0 评论 12 浏览 评分:0.0
刷题记录2025/12/3 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,i,sum=0; double n; scanf("%lf\n&q…… 题解列表 2025年12月03日 0 点赞 0 评论 12 浏览 评分:0.0
2754: 其他基本数据类型存储空间大小 摘要:#include <stdio.h>#include <stdbool.h>int main(){ bool x; char…… 题解列表 2025年12月03日 0 点赞 0 评论 15 浏览 评分:0.0