题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=50;int a…… 题解列表 2024年05月12日 0 点赞 0 评论 209 浏览 评分:0.0
编写题解 2805: 乘方计算题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,n,s=1; cin>>a>>n; …… 题解列表 2024年05月11日 0 点赞 0 评论 128 浏览 评分:0.0
明明的随机数(简单解法) 摘要:解题思路:分为三步:第一步:得到数组数据第二步:去除重复的数字,用101表示第三步:把第一组去重后的数据放入第二组第四步:排序第五步:输出数组注意事项:参考代码:#include<iostream>u…… 题解列表 2024年05月11日 0 点赞 0 评论 277 浏览 评分:0.0
信息学奥赛一本通T1317-组合的输出 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int n,r;int a[25];void dfs(int step,int flag)//step表…… 题解列表 2024年05月10日 1 点赞 0 评论 373 浏览 评分:0.0
编写题解 2804: 与指定数字相同的数的个数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,m,sum=0;cin>>n>>m; int d[…… 题解列表 2024年05月09日 0 点赞 0 评论 232 浏览 评分:9.9
记忆化搜索 摘要:#include<bits/stdc++.h> using namespace std; const int N=310; int dx[] = {-1, 0, 1, 0}; int dy[]…… 题解列表 2024年05月09日 0 点赞 0 评论 258 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:# 自定义排序(结构体) ## 一、题目: >1、例如数字 1、2、3、5、7 都没有形成封闭图形,而数字 0、4、6、9 分别形成了 1 个封闭图形,数字 8 则形成了 2个封闭图形。 >…… 题解列表 2024年05月09日 1 点赞 0 评论 911 浏览 评分:9.9
编写题解 2803: 整数的个数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int k,a=0,b=0,c=0; cin>>k; int …… 题解列表 2024年05月08日 0 点赞 0 评论 144 浏览 评分:9.9
c++ 2071: [STL训练]壮志难酬 没用到字符串 摘要:```cpp #include using namespace std; int main() { vector v1; int t; cin>>t; …… 题解列表 2024年05月08日 0 点赞 0 评论 196 浏览 评分:0.0
1047: [编程入门]报数问题(约瑟夫环) 摘要:解题思路: 数组、vector 及公式分别实现注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; …… 题解列表 2024年05月08日 1 点赞 0 评论 154 浏览 评分:9.9