2804: 与指定数字相同的数的个数 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b;int c[1000000];int main(){ int sum=0; …… 题解列表 2023年07月18日 0 点赞 0 评论 327 浏览 评分:9.9
2901: 查找特定的值 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,d;int c[1000000];int main(){ int sum=1; …… 题解列表 2023年07月18日 0 点赞 0 评论 386 浏览 评分:9.9
3020: 最大数位置 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,sum;int c[1000000];int main(){ cin >>a; …… 题解列表 2023年07月18日 0 点赞 0 评论 642 浏览 评分:9.9
题解 2821: 开关灯 摘要:解题思路:首先,如何确定每盏灯的开关?——可以用1代表初始值“开”。for(int i=1;i<=n;i++) { light[i]=1; }接下来,如何表示每个人对灯的反向操作?for…… 题解列表 2023年07月18日 0 点赞 2 评论 748 浏览 评分:9.9
2877: 同行列对角线的格子(有点麻烦,但非常好使) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std ; int a[100][100] ; int b[100][100] ;…… 题解列表 2023年07月18日 0 点赞 0 评论 713 浏览 评分:9.9
C语言解全排列 摘要:解题思路:注意事项:两种代码,第二种交换的代码由于最终打印顺序不同通过不了此题参考代码:#include <stdio.h>#include <string.h>#include <stdbool.h…… 题解列表 2023年07月19日 0 点赞 0 评论 1018 浏览 评分:9.9
矩阵交换行(C++)简单实现 摘要:参考代码:#include <iostream>using namespace std;int main() { int matrix[5][5]; // 5x5矩阵 // 输入矩阵 …… 题解列表 2023年07月19日 0 点赞 0 评论 704 浏览 评分:9.9
回文串(C++)简单易懂 摘要:参考代码:#include <iostream>#include <string>using namespace std;bool isPalindrome(string str) { int …… 题解列表 2023年07月19日 0 点赞 0 评论 473 浏览 评分:9.9
直方图(C++)简单解 摘要:参考代码:#include <iostream>#include <vector>#include <algorithm>using namespace std;int main() { int…… 题解列表 2023年07月19日 0 点赞 2 评论 319 浏览 评分:9.9
优质题解 蓝桥杯基础练习VIP-阶乘计算(C++自定义函数解题) 摘要:代码解析:multiply 函数实现高精度乘法。它接受一个存储数字的向量 num 和一个因子 factor 作为参数,并返回乘法结果的向量 result。在 multiply 函数中,使用 carry…… 题解列表 2023年07月19日 0 点赞 0 评论 867 浏览 评分:9.9