信息学奥赛一本通T1291-数字组合 摘要:解题思路:01 背包, f[j] 表示和为j的方案数, 当j = 0 时, 方案为一个数字都不选,此时方案数为1注意事项:参考代码:#include<iostream> #include<algor…… 题解列表 2024年04月28日 0 点赞 0 评论 989 浏览 评分:9.9
计算多项式的导函数 摘要:解题思路:注意事项:输入n项是常数项的导数是0,不用输出参考代码:#include<iostream>using namespace std;int main(){ int n; int c;…… 题解列表 2024年04月28日 0 点赞 0 评论 492 浏览 评分:0.0
信息学奥赛一本通T1290-采药 摘要:解题思路:典型01背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e…… 题解列表 2024年04月28日 0 点赞 0 评论 477 浏览 评分:9.9
超绝相差解法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,n; cin>>m>>n; int s1=0; int s…… 题解列表 2024年04月28日 0 点赞 0 评论 467 浏览 评分:0.0
超绝相差解法 摘要:解题思路:1 3 5-1 3 =5注意事项:参考代码:#includeusing namespace std;int main(){ int m,n; cin>>m>>n; int sum1=0; i…… 题解列表 2024年04月28日 0 点赞 0 评论 691 浏览 评分:9.9
会find就很好做了 ```cpp#includeusingnamespacestd;#defineendl'\n'constintN=105;strings;intv[N];voiddfs(intx,intn){if(x==n){return;}dfs(x+1, 题解列表 2024年04月28日 0 点赞 0 评论 800 浏览 评分:9.9
信息学奥赛一本通T1273-货币系统 摘要:解题思路:完全背包注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; int a[N],f[N];…… 题解列表 2024年04月28日 0 点赞 0 评论 688 浏览 评分:9.9
[递归]母牛的故事(动态规划,递归) 摘要:解题思路:写出数学表达式 F(x){ x<=3 f(x)=x;// 前三年只有一头母牛生孩子 &nbs 题解列表 2024年04月27日 0 点赞 0 评论 624 浏览 评分:6.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年04月27日 0 点赞 0 评论 408 浏览 评分:2.0
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年04月27日 1 点赞 0 评论 485 浏览 评分:2.0