图的遍历-BFS广度优先搜索(C++) 摘要:解题思路:#include<iostream> using namespace std; #define MAX_VERTEX_NUM 50 // 定义最大结点数; #define MAXQSI…… 题解列表 2024年03月05日 0 点赞 0 评论 412 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-数位排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i,n,m,t,s; cin>>n>>m…… 题解列表 2024年03月05日 0 点赞 0 评论 336 浏览 评分:0.0
dp和dfs两种解法(java) 摘要:参考代码:import java.util.*;public class Main { static int n; static int[][]g=new int[26][26]; static in…… 题解列表 2024年03月05日 0 点赞 0 评论 359 浏览 评分:9.9
出差,dij算法 摘要:解题思路:使用图dijistra算法,根据题目进行一点变形即可注意事项:注意算法时间复杂度,以及一些小细节,代码中都有详细注释参考代码:#include<bits/stdc++.h>#define M…… 题解列表 2024年03月05日 0 点赞 0 评论 537 浏览 评分:9.9
合法C标识符 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; cin>>s; for(int i=0;…… 题解列表 2024年03月05日 0 点赞 0 评论 289 浏览 评分:0.0
二分查找求方案数 (最大值) 摘要:二分查找 巧克力划分的方案数 (最大值) ```c++ #include using namespace std; const int N = 1e5+10; typedef long …… 题解列表 2024年03月05日 0 点赞 0 评论 333 浏览 评分:0.0
【C语言题解】1025: [编程入门]数组插入处理 摘要:``` #include 定义一个数组来存放数字 int number [15]; int main(){ //清空数组 memset (number,0,sizeof(num…… 题解列表 2024年03月05日 0 点赞 0 评论 296 浏览 评分:0.0
动态规划 最长公共子序列 摘要:解题思路:注意事项:参考代码:a = list(input()) b = list(input()) la = len(a) lb =len(b) dp=[[0 for i in range(…… 题解列表 2024年03月05日 0 点赞 0 评论 521 浏览 评分:0.0
暴力法,蓝桥杯2020年第十一届省赛真题-回文日期 摘要:解题思路:注意事项:参考代码:from datetime import timedelta, datetime def pan1(day): for i in range(4): …… 题解列表 2024年03月05日 0 点赞 0 评论 409 浏览 评分:9.9
The 3n + 1 problem 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int a,b; int i = 0; int x; while (scan…… 题解列表 2024年03月05日 1 点赞 0 评论 303 浏览 评分:10.0