[编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:三个函数注意事项:参考代码:#include<stdio.h>int gongyueshu(int f,int g){ int l,o; while(f%g!=0) { …… 题解列表 2022年03月16日 0 点赞 0 评论 649 浏览 评分:9.9
优质题解 汉诺塔【经典递归问题(多分支)】 **凡是递归问题都是找重复,找子问题,找变化量,找出口**找重复,我们就要划分问题,将最后一个盘子n和n-1个盘子划分开来子问题就是求n-1个盘子如何移动变化量就是盘子数,每次将**此时**最大的盘子n留下,将剩下的n-1移动(此n非上述n)出口就是n等于1, 题解列表 2022年03月16日 1 点赞 0 评论 1296 浏览 评分:8.7
编写题解 2072: [STL训练]寻梦 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): strg_1=input() strg_2=input().strip() …… 题解列表 2022年03月16日 0 点赞 0 评论 682 浏览 评分:9.9
编写题解 2071: [STL训练]壮志难酬 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): a,b=map(str,input().split()) print(a[a.f…… 题解列表 2022年03月16日 0 点赞 0 评论 710 浏览 评分:0.0
1446: 蓝桥杯2013年第四届真题-核桃的数量 摘要:解题思路:注意事项:参考代码:a, b, c = map(int, input().split()) i = 0 while True: i += 1 su = max(a, …… 题解列表 2022年03月16日 0 点赞 0 评论 440 浏览 评分:9.9
阶乘求和初学 摘要:解题思路:注意事项:参考代码:n=int(input())list1=[]b=1for i in range(1,n+1): b=b*i list1.append(b)print(sum(…… 题解列表 2022年03月16日 0 点赞 0 评论 434 浏览 评分:0.0
蓝桥杯历届试题-回文数字 C++模拟 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; int count_=0; string s; …… 题解列表 2022年03月16日 0 点赞 0 评论 757 浏览 评分:0.0
1509: 蓝桥杯算法提高VIP-图形输出 ```cpp#includeusingnamespacestd;intmain(){cout 题解列表 2022年03月15日 0 点赞 0 评论 625 浏览 评分:0.0
1507: 蓝桥杯算法提高VIP-去注释 ```cpp#includeusingnamespacestd;intmain(){charc;while((c=cin.get())!=EOF)//(c=cin.get())要加(){if(c=='/'){chard=cin.get();if(d=='/'){while((d=cin.get())! 题解列表 2022年03月15日 0 点赞 0 评论 661 浏览 评分:9.9
子串分值复杂解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<string>using namespace std;int leftbound[100000];int …… 题解列表 2022年03月15日 0 点赞 0 评论 1205 浏览 评分:9.9