1290: 奶牛的锻炼 摘要:解题思路:注意事项:说实话没怎么看懂!参考代码:#include <iostream>using namespace std;int main(){ //d[i]代表第i分钟可以跑的路程 …… 题解列表 2024年03月10日 1 点赞 0 评论 260 浏览 评分:10.0
数的划分(深搜) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n, m, ans; void dfs(int k,int s…… 题解列表 2024年03月11日 1 点赞 0 评论 191 浏览 评分:10.0
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路: 在这段代码中,int s = int(str1[1])-48; 的目的是将输入的字符串中的第二个字符转换为整数。这是因为输入的字符串表示的是一个数字,而不是一个…… 题解列表 2024年03月12日 1 点赞 0 评论 321 浏览 评分:10.0
C语言最简单易懂的01背包解法 摘要:解题思路:注意事项:参考代码:// DP动态规划 01背包#include<stdio.h>int main(){ int N, m, v[25], p[25], dp[30000] = { …… 题解列表 2024年03月12日 0 点赞 0 评论 289 浏览 评分:10.0
LETTERS(经典DFS) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int r, s,t1=0,t2;//r,s表示迷…… 题解列表 2024年03月14日 0 点赞 0 评论 216 浏览 评分:10.0
采药---类似背包,详细注释 摘要:详细注释的代码,解释背包原理参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2024年03月14日 2 点赞 0 评论 239 浏览 评分:10.0
循环输入简单易懂 摘要:#include int main() { int n,i; int a; int sum; while(1)//进入循环,结束条件为当输入的数等于0的时候…… 题解列表 2024年03月15日 1 点赞 0 评论 320 浏览 评分:10.0
1075: 台球碰撞(绝对牛逼!!!) 摘要:解题思路:注意事项:解析请看这里: https://blog.dotcpp.com/a/63859参考代码:#include <iostream>#include <cmath>#include <…… 题解列表 2024年03月16日 0 点赞 0 评论 264 浏览 评分:10.0
数据结构-集合union(基础) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct List{ int L[200]; int leng…… 题解列表 2024年03月17日 1 点赞 0 评论 207 浏览 评分:10.0
蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include <bits/stdc++.h> using namespace std; // 该题,因为数据范围很小,所以可以 把所有的排列情况列出来 // 然后 每列出 一个飞机,…… 题解列表 2024年03月17日 4 点赞 4 评论 2294 浏览 评分:10.0