题解列表

筛选

1290: 奶牛的锻炼

摘要:解题思路:注意事项:说实话没怎么看懂!参考代码:#include <iostream>using namespace std;int main(){    //d[i]代表第i分钟可以跑的路程    ……

数的划分(深搜)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n, m, ans; void dfs(int k,int s……

2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸

摘要:解题思路:               在这段代码中,int s = int(str1[1])-48; 的目的是将输入的字符串中的第二个字符转换为整数。这是因为输入的字符串表示的是一个数字,而不是一个……

C语言最简单易懂的01背包解法

摘要:解题思路:注意事项:参考代码:// DP动态规划  01背包#include<stdio.h>int main(){    int N, m, v[25], p[25], dp[30000] = { ……

LETTERS(经典DFS)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int r, s,t1=0,t2;//r,s表示迷……

循环输入简单易懂

摘要:#include int main() { int n,i; int a; int sum; while(1)//进入循环,结束条件为当输入的数等于0的时候……

数据结构-集合union(基础)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct List{    int L[200];    int leng……