题解列表

筛选

The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<math.h>int main(){ int a,b; int i = 0; int x; while (scan……

A+B for Input-Output Practice (I)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int a,b;   while(cin>>a>>b)   cou……

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] = { ……