题解 1123: C语言训练-列出最简真分数序列(C——简单) 摘要:题目:按递增顺序依次列出所有分母为40,分子小于40的最简分数。输出示例:1/40,3/40,7/40,9/40,11/40,13/40,17/40,19/40,21/40,23/40,27/40,2…… 题解列表 2022年08月24日 0 点赞 1 评论 438 浏览 评分:9.9
[编程入门]水仙花数判断(简单C语言) 摘要:解题思路:水仙花数只能是三位数,所以先分别求出百位,十位,个位三个数字,再分别求出它们的立方,最后相加和原数字相比较就行,利用for循环从100到1000逐个检查即可注意事项:三个数字的立方和可能会很…… 题解列表 2022年08月24日 0 点赞 0 评论 388 浏览 评分: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 评论 293 浏览 评分:9.9
1079: 射击游戏 摘要:```cpp #include #include #include using namespace std; int n; double dp[7][7][7][7][7][7]; do…… 题解列表 2022年08月24日 0 点赞 0 评论 1159 浏览 评分:9.9
1080: 战场的数目 摘要:```cpp #include #include using namespace std; typedef long long LL; const LL mod=987654321; LL…… 题解列表 2022年08月24日 0 点赞 0 评论 862 浏览 评分: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 评论 323 浏览 评分:9.9
1081: Infinite Dictionaries 摘要:```cpp #include #include #include using namespace std; struct rec { int flag,x,z; st…… 题解列表 2022年08月24日 0 点赞 0 评论 537 浏览 评分:9.9
求大佬只指点 摘要:```c #include #include int main() { int M;//定义输入M scanf("%d", &M); int i; int type[200] …… 题解列表 2022年08月24日 0 点赞 0 评论 328 浏览 评分:9.9
差分与前缀和,时间复杂度O(nlogn) 摘要:解题思路:代码和注释已经很清晰了注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxm…… 题解列表 2022年08月24日 0 点赞 0 评论 551 浏览 评分:9.9
字符串逆序 摘要:解题思路:注意事项:参考代码:n=95859 while True: n+=1 a=str(n) b=a[::-1] if a==b: pr…… 题解列表 2022年08月24日 0 点赞 0 评论 561 浏览 评分:9.9