题解列表
1646: 蓝桥杯算法训练VIP-比较字符串
摘要:解题思路:库里有strcmp函数,返回的就是第一个不一样的位置成功返回0注意事项:参考代码: #include<iostream> #include<string> #include……
用调用递归的方法写有规律的数列求和
摘要:解题思路:分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 分子分母有规律的,分母:2、3、5、8、13、21...(n-1+n-2);分子:1、2、3、5、8、13...……
编写题解 1147: C语言训练-角谷猜想
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){int a; cin>>a;while(a!=1){ if(……
蓝桥杯2022年第十三届省赛真题-纸张尺寸
摘要:解题思路:将十张纸的长宽用数组来存参考代码: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int ……
1046 数字后移(构造新数组存储)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; scanf("%d",&n); int a[n]; for(i……
自己的简单小思路,先找到那个值应该的位置,把循环分为两部分
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int a[9]; ……
1045 整数处理(冒泡排序找最值)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[15],b[15]; for(int i=0;i<10;i++) { scanf("%d",&a[……
1044 三个字符串的排序(for循环交换)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[4][100]; for(……