紧急措施(详细注释) 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体aaa,包含三个字符数组a, b, c struct aa…… 题解列表 2024年11月10日 0 点赞 1 评论 211 浏览 评分:9.9
蓝桥杯2018年第九届真题-约瑟夫环-题解(C++代码)简单理解的进一步解释 摘要:解题思路:大佬的代码逻辑太强,对此作进一步的解释说明此代码运用的其实是一种从后往前倒推的思想,我们先假设最后一个人的位置为0,即s=0,所以s+m即为倒数第二个人的报数位置,以此类推,直到推出第一个人…… 题解列表 2024年11月10日 0 点赞 0 评论 303 浏览 评分:9.9
编写题解 1110: 2^k进制数 摘要:```cpp #include #include using namespace std; int pr,max2,tot=0; void dp(int bit,int n){ i…… 题解列表 2024年11月10日 0 点赞 0 评论 283 浏览 评分:9.9
信息学奥赛一本通车厢重组,冒泡排序 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a用于存储输入的整数个数,s…… 题解列表 2024年11月10日 0 点赞 0 评论 322 浏览 评分:0.0
C++2784开瓶盖赢大奖题解 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a;cin >>a; if (a>=10||a>=20) { …… 题解列表 2024年11月10日 1 点赞 0 评论 144 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-前缀总分 摘要:```cpp #include #include using namespace std; int n; int lcp(const string &a,const stri…… 题解列表 2024年11月10日 2 点赞 0 评论 1383 浏览 评分:4.7
骗分?(不知道这题本意是该用什么方法(x_x)) 摘要:解题思路: - 注意题目多组输入是指有着给的样例那样的多组, - 一眼看去似乎是从左到右挨个比较,但给的数据好像很大,老超时,就想着能不能每次遍历两个元素,一个指向开头,一个指向数组中间,详细的看…… 题解列表 2024年11月10日 0 点赞 0 评论 188 浏览 评分:0.0
蓝桥杯算法提高VIP-Pascal三角 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ int a, d[100000], e[1…… 题解列表 2024年11月09日 0 点赞 0 评论 161 浏览 评分:0.0
经典问题—过河卒 解决思路(C++) 摘要:解题思路:有如下棋盘:(*代表移动路径,i 代表x1,j 代表y1) 0 1 2 3 4 ————— 0 |A 1 1 1 1 1 |1 1 1 1 1…… 题解列表 2024年11月09日 1 点赞 0 评论 415 浏览 评分:9.9
1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;set<int>st;int main(){ int n,m; cin…… 题解列表 2024年11月08日 0 点赞 0 评论 332 浏览 评分:10.0