3022:流感传染DP 摘要:解题思路:可以DP,可以搜索。 要就复制吧,爱就点赞吧!注意事项:注意b结构体不要删,否自会直线传播。参考代码:#include<bits/stdc++.h> using namespace st…… 题解列表 2023年01月03日 0 点赞 0 评论 339 浏览 评分:9.9
3021: Pell数列 摘要:解题思路:Pell数列DP方法!要就复制吧,爱就点赞吧!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1000005]=…… 题解列表 2023年01月03日 0 点赞 2 评论 691 浏览 评分:9.9
3023: 移动路线 摘要:解题思路:通过数学的方法,可得出:f[i][j]=f[i][j-1]+f[i-1][j]注意事项:参考代码:#include<bits/stdc++.h> using namespace std; …… 题解列表 2023年01月03日 0 点赞 0 评论 314 浏览 评分:9.9
3025: 踩方格 摘要:解题思路:典型DP,直接递推。 要就复制吧,爱就点赞吧!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[25]={1,3…… 题解列表 2023年01月03日 0 点赞 0 评论 493 浏览 评分:9.9
3024: 判断整除 摘要:解题思路:要就复制吧,爱就点赞吧注意事项:参考代码:#include<bits/stdc++.h> using namespace std; bool f[10005][105]; int n,…… 题解列表 2023年01月03日 0 点赞 0 评论 307 浏览 评分:9.9
1761: 学习ASCII码 摘要:解题思路:爱要就抄注意事项:参考代码:#include<iostream> using namespace std; int main() { cout<<"116 ?"; …… 题解列表 2023年01月03日 0 点赞 0 评论 588 浏览 评分:6.0
3024: 判断整除 摘要:想要就去复制吧!记得5星好评解题思路:搜索来判断整除注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[100000],n,k…… 题解列表 2023年01月03日 0 点赞 0 评论 319 浏览 评分:9.9
2777: 计算2的幂(递归) 摘要:解题思路:递归注意事项:参考代码:#include<iostream> using namespace std; int mi(int n) { if(n==0) return 1; i…… 题解列表 2023年01月02日 0 点赞 0 评论 311 浏览 评分:0.0
2774: 计算三角形面积 摘要:解题思路:海伦公式注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> using namespace std; doub…… 题解列表 2023年01月02日 0 点赞 0 评论 267 浏览 评分:0.0
2797: 最高的分数(STL函数最快解决问题) 摘要:##2797: 最高的分数 ######用max_element的时候输出记得加*解引用 ```cpp #include using namespace std; int main() {…… 题解列表 2023年01月02日 0 点赞 0 评论 429 浏览 评分:9.9