C++ 代码演示 注意条件的过滤 摘要: 1. 要求因子和相等; 2. 要求亲密数不同; 3. 要求亲密数对唯一; 4. 要求亲密数对大的在后,小的在前; ``` #include #include #incl…… 题解列表 2022年05月06日 0 点赞 0 评论 507 浏览 评分:0.0
,,,,,,,,,,, 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct student{ char number[100]; char name[100]; int scor…… 题解列表 2022年05月06日 0 点赞 0 评论 373 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int main(){ cin>>s; for(int i=…… 题解列表 2022年05月06日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s,b;int main(){ cin>>s>>b; cout<…… 题解列表 2022年05月06日 0 点赞 0 评论 395 浏览 评分:0.0
蓝桥杯算法提高-输出二进制表示 题解 摘要:解题思路:用位运算和&来转换。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d…… 题解列表 2022年05月06日 0 点赞 0 评论 394 浏览 评分:0.0
[编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[10][10];int main(){ for(int i=0;i…… 题解列表 2022年05月06日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ cin>>a; for(int…… 题解列表 2022年05月06日 0 点赞 0 评论 330 浏览 评分:0.0
三个字符串的排序 摘要:解题思路:直接排序,暴力。注意事项:sort(里a是加3);参考代码:#include<bits/stdc++.h>using namespace std;string a[3]; int main(…… 题解列表 2022年05月06日 0 点赞 0 评论 412 浏览 评分:0.0
[编程入门]数字逆序输出 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[15];int main(){ for(int i=0…… 题解列表 2022年05月06日 0 点赞 0 评论 351 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 题解 摘要:解题思路:就直接输入字符串数组,用字符串长度打擂台,找到长度最大的字符串,输出。注意事项:要用字符串数组。参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2022年05月06日 0 点赞 0 评论 390 浏览 评分:0.0