字符串逆序 摘要:解题思路:注意事项:参考代码:n=95859 while True: n+=1 a=str(n) b=a[::-1] if a==b: pr…… 题解列表 2022年08月24日 0 点赞 0 评论 839 浏览 评分:9.9
质因数分解的模板题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;ll n,ans;void getans(…… 题解列表 2022年08月24日 0 点赞 0 评论 1084 浏览 评分:7.3
差分与前缀和,时间复杂度O(nlogn) 摘要:解题思路:代码和注释已经很清晰了注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxm…… 题解列表 2022年08月24日 0 点赞 0 评论 805 浏览 评分:9.9
求大佬只指点 摘要:```c #include #include int main() { int M;//定义输入M scanf("%d", &M); int i; int type[200] …… 题解列表 2022年08月24日 0 点赞 0 评论 627 浏览 评分: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 评论 850 浏览 评分: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 评论 568 浏览 评分: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 评论 1136 浏览 评分: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 评论 1432 浏览 评分:9.9
斐波纳契数列解析 摘要:解题思路:数学家斐波纳契在一次兔灾后发现了斐波纳契数列,列举如下: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 评论 560 浏览 评分:9.9
[编程入门]水仙花数判断(简单C语言) 解题思路:水仙花数只能是三位数,所以先分别求出百位,十位,个位三个数字,再分别求出它们的立方,最后相加和原数字相比较就行,利用for循环从100到1000逐个检查即可注意事项:三个数字的立方和可能会很大,所以可能要用double类型的数字储存它参考代码:#include#includ 题解列表 2022年08月24日 0 点赞 0 评论 682 浏览 评分:9.9