[编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[10][10];int main(){ for(int i=0;i…… 题解列表 2022年05月06日 0 点赞 0 评论 252 浏览 评分:0.0
蓝桥杯算法提高-输出二进制表示 题解 摘要:解题思路:用位运算和&来转换。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d…… 题解列表 2022年05月06日 0 点赞 0 评论 263 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s,b;int main(){ cin>>s>>b; cout<…… 题解列表 2022年05月06日 0 点赞 0 评论 265 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; for(int i=…… 题解列表 2022年05月06日 0 点赞 0 评论 233 浏览 评分:0.0
三行代码解决 摘要:解题思路:扩展欧几里得算法参考代码:#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; …… 题解列表 2022年05月06日 0 点赞 0 评论 302 浏览 评分:6.0
C++ 代码演示 注意条件的过滤 摘要: 1. 要求因子和相等; 2. 要求亲密数不同; 3. 要求亲密数对唯一; 4. 要求亲密数对大的在后,小的在前; ``` #include #include #incl…… 题解列表 2022年05月06日 0 点赞 0 评论 367 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-质因数个数 摘要:解题思路:基于算术基本定理注意事项:参考代码:#include<bits/stdc++.h> int main(){ long long n,ans = 0,index; int sum;…… 题解列表 2022年05月06日 0 点赞 0 评论 1804 浏览 评分:4.2
c++兰顿蚂蚁问题 摘要:参考代码:#include<iostream> using namespace std; int dx[4]={-1,0,1,0};//上右下左顺时针 int dy[4]={0,1,0,-1};…… 题解列表 2022年05月06日 0 点赞 0 评论 216 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:解题思路:构建两层循环 第一层循环n范围内的数第二层循环从1开始 将能够整除的数进行存储并将其求和然后 进行完数的判断 输出注意事项:数组定义大小要足够大,在每次执行完第二层循环时进行sum和k的初始…… 题解列表 2022年05月06日 0 点赞 0 评论 789 浏览 评分:9.9
蓝桥杯历届试题-国王的烦恼 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int Max_N = 1e4+10;const int Max_M…… 题解列表 2022年05月05日 0 点赞 1 评论 424 浏览 评分:9.9