题解列表
分成互质组 为了这题开了张月卡 哈哈哈哈哈 呃
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
int f(int b, int c) {
if (c == 0)……
蓝桥杯算法训练VIP-单词接龙 就离谱
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义字符串数组,用于存储输入的字符串
string s[30];
……
1157: 亲和数 递归写的
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int yssum(int a,int b){ if (b >= a) { return 0; } ……
3038: 马走日 dfs 入门必写
摘要:解题思路:注意事项:参考代码:#include "bits/stdc++.h"
using namespace std;
// 全局变量声明
int n, m, x, y, kkk = 0; /……
统计回文数的操作次数
摘要:解题思路:利用回文数的对称性 使用双循环对称判断 再寻找特殊性(即奇数个需要移动到中间,偶数个不需要移动,以及连个单出来的char构不成回文数)统计次数得出结果注意事项:第二个for循环的“移动”循……
阶乘数列 C++解题
摘要:解题思路:注意事项: 精度只到两位小数,double类型应该也可以吧。参考代码:#include<iostream>using namespace std;int main(){ int n; ……
晶晶赴约会(c语言switch语句)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a) { case 1: case ……
编写题解 1206: 字符串问题
摘要:解题思路:我们的目标是将输入字符串中的字符位置进行颠倒,也就是让原本在首位的字符挪到末尾,原本在末尾的字符挪到首位,依次类推注意事项:字符位置颠倒操作确定交换范围:利用循环来实现字符的两两交换从而达到……