3035: LETTERS最多能走过的不同字母的个数 解题思路:注意事项:dfs函数中要注意最后一定要写ch_flag[ch_idx]=false;防止回溯的时候出现错误参考代码:#include#include#includeintR, 题解列表 2025年12月04日 0 点赞 0 评论 385 浏览 评分:0.0
1347: 八皇后问题 摘要:解题思路:注意事项:dfs函数中一定要写col[col_idx]=false; diag1[d1]=false;&nb…… 题解列表 2025年12月04日 0 点赞 0 评论 418 浏览 评分:0.0
你就说对不对吧 摘要:#include<stdio.h>int main(void){ printf("153\n370\n371\n407"); &n…… 题解列表 2025年12月04日 1 点赞 0 评论 493 浏览 评分:0.0
注意第一个数为最大数的特殊情况! 解题思路:先把最小的数和第一个数对换,再把最大的数和最后一个数对换注意事项:两个操作不要同时进行,依次进行参考代码:#includevoidinput(longlong*f){for(inti=0;i<10;i++)scanf("%lld", 题解列表 2025年12月04日 0 点赞 0 评论 550 浏览 评分:0.0
自己写的,可供参考 摘要:解题思路:直接看吧参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n; &…… 题解列表 2025年12月05日 0 点赞 0 评论 381 浏览 评分:0.0
[编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int number[3]; int t=0;&…… 题解列表 2025年12月05日 3 点赞 0 评论 842 浏览 评分:0.0
编写题解 1227: 日期排序 摘要:解题思路:注意事项:参考代码:dates = []while True: try: line = input().str…… 题解列表 2025年12月07日 0 点赞 0 评论 398 浏览 评分:0.0
应该大概是这样写的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; scanf("%…… 题解列表 2025年12月07日 0 点赞 0 评论 426 浏览 评分:0.0
应该大概是这样写的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf(&qu…… 题解列表 2025年12月07日 0 点赞 0 评论 362 浏览 评分:0.0
跟上一个题目也大差不差,稍微改动一下; 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=0,a=0,b=0,c=0,sum=0;//n是行第一个数,a…… 题解列表 2025年12月09日 0 点赞 0 评论 338 浏览 评分:0.0