蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:非常规解法,专门对付10^18次方的大数量级注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int k1[]={1,3,5,7,9}…… 题解列表 2024年11月20日 0 点赞 0 评论 489 浏览 评分:2.0
2986: 判断元素是否存在,递推解法!!! 摘要:解题思路: 注意输入中间有一个逗号,一开始没注意错的都让我怀疑题目有问题了,呜呜呜注意事项:参考代码:#include"bits/stdc++.h" using namespace std; …… 题解列表 2024年11月20日 0 点赞 0 评论 275 浏览 评分:0.0
超容易理解的 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void verse(int a){ int ret[100]; int count=0; w…… 题解列表 2024年11月20日 3 点赞 0 评论 884 浏览 评分:10.0
状态压缩DP #2495: 信息学奥赛一本通T1592-国王 摘要:**大体思路** 如果 n=3,那么 [1 0 0 ] 代表第一行第一个位置放置棋子 由于每一行怎么摆放,只会受到上一行棋子摆放带来的影响 所以我们枚举每一行的所有==合法状态==,…… 题解列表 2024年11月20日 2 点赞 0 评论 293 浏览 评分:0.0
3030: 全排列 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int l; // 字符串长度 string s; …… 题解列表 2024年11月20日 1 点赞 0 评论 502 浏览 评分:10.0
信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 634 浏览 评分:0.0
糖果游戏-环状数组的左右索引公式 摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i…… 题解列表 2024年11月20日 0 点赞 0 评论 353 浏览 评分:0.0
集合的划分 递归 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; long long aaa(int n, int k) { // …… 题解列表 2024年11月19日 0 点赞 0 评论 377 浏览 评分:0.0
信息学奥赛一本通T1314-过河卒 动态规划 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量,包括矩阵大小、中心点坐标和计数器 int n, m, …… 题解列表 2024年11月19日 0 点赞 0 评论 421 浏览 评分:0.0
最高的分数题解 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> //vector头文件 using namespace std; int max(…… 题解列表 2024年11月19日 0 点赞 0 评论 215 浏览 评分:0.0