题解列表

筛选

鸣人的影分身

摘要: #include using namespace std; int t,n,m; int f[11][11]; int main(){ ……

当然是纯暴力啦

摘要:解题思路:注意事项:参考代码:list1=[i for i in range(1,3001)] list2=[] list3=[] for i in list1:     sum=1    ……

动态规划母牛的故事

摘要:解题思路:注意事项:参考代码:N = []       #   所有要求的年份(题意是求第n年初,所有之后索引值要减一) while 1:     n = int(input())     if……

菲波那契数列

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int f[100]={0,1};int main(){ int n; cin>>n……

奶牛的锻炼

摘要:# 奶牛的锻炼 ##思路解析 首先,我们可以发现这是一个动态规划问题。因此需要设计一个合理的dp数组来辅助我们完成任务。 大概思路可见代码注释。 ##代码实现 ```cpp /* *……