筛排处理,气死我了这题!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a和数组d,其中d的大小为1…… 题解列表 2024年11月18日 0 点赞 1 评论 190 浏览 评分:9.9
应该是最简洁了的-最强小队 摘要:解题思路:题意理解错了,以为是从一段区间中选取几个结果是一整段的,几行搞定注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2024年11月18日 1 点赞 0 评论 709 浏览 评分:4.0
1796: 蛇形填数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int n, a[150][150];void twins(i…… 题解列表 2024年11月18日 0 点赞 0 评论 378 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-遗迹 摘要:解题思路:ret放在最外层循环就AC了,但觉得后台数据应该错了,ret 觉得应该是放在 auto& k1 循环内的前后结点相同的状态应该也有扩展状态的必要,而不是直接继承注意事项:参考代码:#incl…… 题解列表 2024年11月18日 1 点赞 2 评论 892 浏览 评分:0.0
头铁撞墙-狡兔 k 窟 摘要:解题思路:惯性思维硬刚等同于头铁撞墙把连通的点集视为一个结点,结点相连,然后广搜路径注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#defi…… 题解列表 2024年11月18日 2 点赞 0 评论 710 浏览 评分:9.0
信息学奥赛一本通T1252-走迷宫,dfs做法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int a, b, h[50][50]; // a和b…… 题解列表 2024年11月18日 0 点赞 0 评论 339 浏览 评分:0.0
信息学奥赛一本通T1422-活动安排 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体aaa,包含两个整数成员s和f struct aaa{ …… 题解列表 2024年11月17日 1 点赞 0 评论 442 浏览 评分:0.0
回文字符串四种情况 摘要:解题思路:1.字符串s本身回文aaa2.全为"lqb"字符,补充另一半即可lqb ==> bql_lqb3.前部分回文ioilqb ==> bql_ioilqb4.部分回文bioi_blq ==>ql…… 题解列表 2024年11月17日 3 点赞 0 评论 557 浏览 评分:9.0
很简单的题 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int M[20]= {0,31,0,31,30,31,30,31,31,30,…… 题解列表 2024年11月17日 1 点赞 1 评论 723 浏览 评分:7.3
The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 1 点赞 0 评论 176 浏览 评分:0.0