题解列表

筛选

信息学奥赛一本通T1291-数字组合

摘要:解题思路:01 背包, f[j] 表示和为j的方案数, 当j = 0 时, 方案为一个数字都不选,此时方案数为1注意事项:参考代码:#include<iostream> #include<algor……

计算多项式的导函数

摘要:解题思路:注意事项:输入n项是常数项的导数是0,不用输出参考代码:#include<iostream>using namespace std;int main(){   int n;   int c;……

信息学奥赛一本通T1290-采药

摘要:解题思路:典型01背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e……

超绝相差解法

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

超绝相差解法

摘要:解题思路:1 3 5-1 3 =5注意事项:参考代码:#includeusing namespace std;int main(){ int m,n; cin>>m>>n; int sum1=0; i……

会find就很好做了

摘要: ```cpp #include using namespace std; #define endl '\n' const int N=105; string s; int……

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int ……