题解 2809: 菲波那契数列 摘要:解题思路:注意事项:参考代码:k = int(input()) a1 = a2 = 1 for i in range(k - 2): a1, a2 = a2, a1 + a2 prin…… 题解列表 2024年03月17日 1 点赞 0 评论 670 浏览 评分:4.7
3150-冶炼金属-简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int a,b; scanf("%d %d",&a…… 题解列表 2024年03月24日 0 点赞 0 评论 643 浏览 评分:4.7
编写题解 2848: 基因相关性,python超简单 摘要:(python学子仔细读题哦)n = float(input()) DNA1 = input() DNA2 = input() # 比对两条DNA序列 matching_pairs = 0 …… 题解列表 2024年03月29日 0 点赞 0 评论 972 浏览 评分:4.7
数字诗意(找规律) 摘要:解题思路:有诗意的数注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;typede…… 题解列表 2024年04月16日 0 点赞 0 评论 1500 浏览 评分:4.7
蓝桥杯2024年第十五届省赛真题-前缀总分 摘要:```cpp #include #include using namespace std; int n; int lcp(const string &a,const stri…… 题解列表 2024年11月10日 2 点赞 0 评论 1843 浏览 评分:4.7
求s=a+aa+aaa+aaaa+aa...a的值(C++简单版) 摘要:```cpp #include using namespace std; int main(){ int a, n; cin >> a >> n; unsigne…… 题解列表 2024年11月23日 0 点赞 0 评论 732 浏览 评分:4.7
A+B的处理方式 解题思路:先考虑自然数的输入——input(),再考虑把input()所输入的数据最前端和最后变的多余空格进行删除处理——strip(),处理之后接着再按每个数据之间的空格进行分割、同时转换成列表中的单个数据,这个时候再用map()函数将列表中的各个数据都转换成int——map(int, 题解列表 2025年03月24日 3 点赞 0 评论 1853 浏览 评分:4.7
优质题解 蓝桥杯算法提高VIP-高精度乘法 (C++代码)(balabala) 摘要:解题思路: 哎,我太笨啦。 逆序字符串 → 乘积 → 进位 → 反转存在字符串里 → 返回字符串。   题解列表 2018年06月10日 5 点赞 1 评论 2775 浏览 评分:4.8
数据结构-自底向上的赫夫曼编码 (C语言代码) 摘要:解题思路: 现学现用。注意事项: 见代码第114行。参考代码:#include<stdio.h> #include<string.h> #include<malloc.h> ty…… 题解列表 2018年08月16日 2 点赞 5 评论 2578 浏览 评分:4.8