题解列表
1507: 蓝桥杯算法提高VIP-去注释
摘要:```cpp
#include
using namespace std;
int main()
{
char c;
while ((c = cin.get()) != EOF)//(c……
1509: 蓝桥杯算法提高VIP-图形输出
摘要:```cpp
#include
using namespace std;
int main()
{
cout……
蓝桥杯历届试题-回文数字 C++模拟
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
int n;
int count_=0;
string s;
……
1446: 蓝桥杯2013年第四届真题-核桃的数量
摘要:解题思路:注意事项:参考代码:a, b, c = map(int, input().split())
i = 0
while True:
i += 1
su = max(a, ……
编写题解 2071: [STL训练]壮志难酬
摘要:解题思路:注意事项:参考代码:n=int(input())
for i in range(n):
a,b=map(str,input().split())
print(a[a.f……
编写题解 2072: [STL训练]寻梦
摘要:解题思路:注意事项:参考代码:n=int(input())
for i in range(n):
strg_1=input()
strg_2=input().strip()
……
优质题解
汉诺塔【经典递归问题(多分支)】
摘要:**凡是递归问题都是找重复,找子问题,找变化量,找出口**
找重复,我们就要划分问题,将最后一个盘子n和n-1个盘子划分开来
子问题就是求n-1个盘子如何移动
变化量就是盘子数,每次将 **此时……
[编程入门]自定义函数处理最大公约数与最小公倍数
摘要:解题思路:三个函数注意事项:参考代码:#include<stdio.h>int gongyueshu(int f,int g){ int l,o; while(f%g!=0) { ……