斐波纳契数列解析 摘要:解题思路:数学家斐波纳契在一次兔灾后发现了斐波纳契数列,列举如下:1 1 2 3 5 8 13 21 34 55 89 144...... 细看有规律,比如:1+1=2、1+2=3、2+3=5、3+5…… 题解列表 2022年08月24日 0 点赞 0 评论 667 浏览 评分:9.9
1079: 射击游戏 ```cpp#include#include#includeusingnamespacestd;intn;doubledp[7][7][7][7][7][7];doubledfs(int*h){if(dp[h[0]][h[1]][h[2]][h[3]][h[4]][h[5]]!=-1)returndp 题解列表 2022年08月24日 0 点赞 0 评论 1487 浏览 评分:9.9
1080: 战场的数目 ```cpp#include#includeusingnamespacestd;typedeflonglongLL;constLLmod=987654321;LLA[1][2],B[2][2],T[1][2],ans[2][2];voidinit(){B[0][0]=3;B[0][1]=T[0][1] 题解列表 2022年08月24日 0 点赞 0 评论 1208 浏览 评分:9.9
耗的时间有点多 摘要:解题思路:注意事项:参考代码:c=[] for i in range(1000,10000): a=int(i/100) b=int(i%100) if (a+b)**…… 题解列表 2022年08月24日 0 点赞 0 评论 615 浏览 评分:9.9
1081: Infinite Dictionaries ```cpp#include#include#includeusingnamespacestd;structrec{intflag,x,z;stringy;rec(){flag=0;x=0;y="";z=0;}};booloperatorsecond.z))return1;used1[it->seco 题解列表 2022年08月24日 0 点赞 0 评论 915 浏览 评分:9.9
求大佬只指点 摘要:```c #include #include int main() { int M;//定义输入M scanf("%d", &M); int i; int type[200] …… 题解列表 2022年08月24日 0 点赞 0 评论 674 浏览 评分:9.9
差分与前缀和,时间复杂度O(nlogn) 摘要:解题思路:代码和注释已经很清晰了注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxm…… 题解列表 2022年08月24日 0 点赞 0 评论 857 浏览 评分:9.9
字符串逆序 摘要:解题思路:注意事项:参考代码:n=95859 while True: n+=1 a=str(n) b=a[::-1] if a==b: pr…… 题解列表 2022年08月24日 0 点赞 0 评论 900 浏览 评分:9.9
时间复杂度O(1) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;ll a,b,n,ans;int main…… 题解列表 2022年08月24日 0 点赞 0 评论 743 浏览 评分:9.9
时间复杂度O(n),简单的数学题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 10010int n,ans[maxn];int main…… 题解列表 2022年08月24日 0 点赞 0 评论 854 浏览 评分:9.9