题解列表

筛选

3022:流感传染DP

摘要:解题思路:可以DP,可以搜索。 要就复制吧,爱就点赞吧!注意事项:注意b结构体不要删,否自会直线传播。参考代码:#include<bits/stdc++.h> using namespace st……

3021: Pell数列

摘要:解题思路:Pell数列DP方法!要就复制吧,爱就点赞吧!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1000005]=……

3023: 移动路线

摘要:解题思路:通过数学的方法,可得出:f[i][j]=f[i][j-1]+f[i-1][j]注意事项:参考代码:#include<bits/stdc++.h> using namespace std; ……

3025: 踩方格

摘要:解题思路:典型DP,直接递推。 要就复制吧,爱就点赞吧!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[25]={1,3……

3024: 判断整除

摘要:解题思路:要就复制吧,爱就点赞吧注意事项:参考代码:#include<bits/stdc++.h> using namespace std; bool f[10005][105]; int n,……

1761: 学习ASCII码

摘要:解题思路:爱要就抄注意事项:参考代码:#include<iostream> using namespace std; int main() {     cout<<"116 ?";     ……

3024: 判断整除

摘要:想要就去复制吧!记得5星好评解题思路:搜索来判断整除注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[100000],n,k……

2777: 计算2的幂(递归)

摘要:解题思路:递归注意事项:参考代码:#include<iostream> using namespace std; int mi(int n) { if(n==0) return 1; i……

2774: 计算三角形面积

摘要:解题思路:海伦公式注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> using namespace std; doub……