题解列表

筛选

这道题的本质就是01背包问题

摘要:太难理解了,特别是那个二维数组。我前几次都理解不了,好在01背包问题只要把实现部分的代码背下来也能用,我理解不了的时候就是背。 那么就用01背包问题来说,最难理解的那个二维数组很多人不知道那个i和j……

数据结构——递归篇

摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; void move(char a,int n,char c) { cout<<"……

校门外的树

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int L,M; scanf("%d%d",&L,&M); int n=L+1,sum=0;  //n:树量  ……

1157题解(C语言)

摘要:```c #include // 函数 yue_shu 用于计算一个整数 n 的所有真约数(除了它本身)的和 int yue_shu(int n){ int sum = 0; //……

1162: 密码(遍历)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int m,cnt = 0; string s, ……

简单易懂(c语言代码)

摘要:```c #include #include int main() { int n; // 用于存储测试用例的数量 int sign[4]; // 用于标记密码中……

python--study||O.o

摘要:参考代码: def main():     n = int(input())     arr = [int(x) for x in input().split()]     find = in……