题解列表

筛选

移动路线,简单递推

摘要:解题思路:转换成从左上到右下注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量m和n,以及二维数组k并初始化为0 i……

2073 安之 亲和串训练

摘要:解题思路:在s1字符串后连接一个s1,用find()函数进行搜索即可。注意事项:参考代码:#include <iostream>#include <string>using namespace std……

多重背包,嘿嘿嘿嘿嘿

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和m,分别表示物品数量和背包容量 int n, m; ……

混合背包 C语言网最阴的题!

摘要:解题思路:注意事项:   不要被题目骗了,数组要开大一点,样例输出也是错的,服了这题目!参考代码:#include"bits/stdc++.h" using namespace std; // 定……

比较复杂,不建议参考

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int t,n;    while(scanf("%d",&t)!=EOF)    {        n=……

最复杂的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f1(int a){    long y;    y=(long)a*a;    return y;}long f2(int ……

最普通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,a,b,c=0,d=0,e=0;    scanf("%d",&n);    while(n)……

超级超级简单的2752

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; short b; printf("%d %d",sizeof(a),sizeof(b)); ret……