编写题解 2805: 乘方计算题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,n,s=1; cin>>a>>n; …… 题解列表 2024年05月11日 0 点赞 0 评论 157 浏览 评分:0.0
明明的随机数(简单解法) 摘要:解题思路:分为三步:第一步:得到数组数据第二步:去除重复的数字,用101表示第三步:把第一组去重后的数据放入第二组第四步:排序第五步:输出数组注意事项:参考代码:#include<iostream>u…… 题解列表 2024年05月11日 0 点赞 0 评论 310 浏览 评分: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 评论 401 浏览 评分: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 评论 260 浏览 评分: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 评论 288 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:# 自定义排序(结构体) ## 一、题目: >1、例如数字 1、2、3、5、7 都没有形成封闭图形,而数字 0、4、6、9 分别形成了 1 个封闭图形,数字 8 则形成了 2个封闭图形。 >…… 题解列表 2024年05月09日 1 点赞 0 评论 971 浏览 评分: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 评论 171 浏览 评分:9.9
c++ 2071: [STL训练]壮志难酬 没用到字符串 摘要:```cpp #include using namespace std; int main() { vector v1; int t; cin>>t; …… 题解列表 2024年05月08日 0 点赞 0 评论 224 浏览 评分:0.0
1047: [编程入门]报数问题(约瑟夫环) 摘要:解题思路: 数组、vector 及公式分别实现注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; …… 题解列表 2024年05月08日 1 点赞 0 评论 177 浏览 评分:9.9
题目 3241: 蓝桥杯2024年第十五届省赛真题-挖矿 摘要:# 二分题解 > 食用之前请先来一发暴力更有利于理解题意 :D ## 1、为什么用二分? >由于不知道要访问多少个坐标,于是我们就来枚举有多少个, >发现时间复杂度为 O(n^2),而这里…… 题解列表 2024年05月08日 2 点赞 0 评论 931 浏览 评分:9.0