题解列表
欧几里得法求最大公倍数,最小公约数
摘要:解题思路:注意事项:参考代码://辗转相除法 #include<iostream>using namespace std;int gcd(int a,int b){ if(a%b==0) retur……
C++处理数字位数与输出
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b[5],c; cin >> a; if (a / 100……
求矩阵的两对角线上的元素之和
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,a[15][15],s,t;int main(){ cin>……
蓝桥杯算法提高VIP-淘淘的名单 题解(c++判断简单题)
摘要:解题思路:三步完事:输入,判断,输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string s;int n;int main(){……
蓝桥杯算法提高VIP-格式化数据输出 题解(c++ 坑人题目)
摘要:解题思路:坑人的格式化输出!!!!!害得我错了好几次!!!上题解!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ ……
蓝桥杯算法提高VIP-数组输出 题解(c++ 哎!没办法)
摘要:解题思路:错的次数太多了,我也无语了,直接理解吧!呵呵!上代码!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[5][5],x……
蓝桥杯算法提高VIP-复数求和 题解(c++我有重大发现!!!!!)
摘要:解题思路:这里更正一下啊,这里的链表在c++中也叫结构体。怪不得我在题目标签里找不到结构体!直接上程序!注意事项:无。参考代码:#include<bits/stdc++.h>using namespa……
蓝桥杯算法提高VIP-单词个数统计 题解(c++谨慎型)
摘要:解题思路:看了以为大佬的讲解,恍然大悟,原来字符串必须要慎之又慎!注意事项:要用getline输入。参考代码:#include<bits/stdc++.h>using namespace std;st……
蓝桥杯算法提高VIP-勾股数 题解(c++枚举简单程序)
摘要:解题思路:运用勾股定理便可轻松解决这题。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ for(int i=……