题解列表
2816: 统计满足条件的4位数个数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,a,ans=0; cin ……
2806: 人口增长问题
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x,n; cin>>x>>n; ……
2805: 乘方计算
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,n,sum; sum=1; ……
2803: 整数的个数
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int k,sum1=0,sum2=0,sum3=0; ……
2801: 奇数求和
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; cin>>n>>m; l……
2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ int n,sum1=0,sum2=0,sum3=0; ……
2798: 整数序列的元素最大跨度值
摘要:解题思路:注意事项:最小值初值最大,最大值初值最小#include<bits/stdc++.h>using namespace std;int main(){ int n,b,c=INT_MAX……
1318: 选课(解析:C++实现)
摘要:# 选课
## 思路解析
这道题是很明显的有依赖背包问题,或者说是树形DP。但是,事实上这道题作完了,我还是感觉是处理了森林这样的数据结构。一开始,读完题目就反应到不是正常的树形DP,而是森林DP……