回文判断-for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(){ chara[1…… 题解列表 2025年02月22日 1 点赞 0 评论 243 浏览 评分:0.0
易懂-数组输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intmain(){&nbs…… 题解列表 2025年02月22日 0 点赞 0 评论 192 浏览 评分:0.0
用字符串存储方便反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int init(string s){ int x = 0; while…… 题解列表 2025年02月22日 0 点赞 0 评论 379 浏览 评分:0.0
纪念品分组(贪心思维) 摘要:> 直接排序,让价格从低到高,然后价格高的和低的一起,如果没有超过上限,就一组,cnt++> 如果超过上限,价格高的一组,cnt++```cpp#include using nam…… 题解列表 2025年02月21日 2 点赞 0 评论 234 浏览 评分:0.0
明明的随机数(使用unordered_set和sort) 摘要:> unordered_set可以去重,但是不能用cin输入,要用**insert**> sort排序,默认升序。***unordered_set不能用sort***,先复制到vector中…… 题解列表 2025年02月21日 2 点赞 0 评论 320 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-数字接龙dfs 摘要: #include using namespace std; const int N=11; int n,k; int g[N][N];//初…… 题解列表 2025年02月21日 12 点赞 3 评论 2530 浏览 评分:9.0
进制练习之十六进制转八进制C++/乱搞 摘要:当然,第一种方法是乱搞:```cpp#includeusing namespace std;int main(){ int a; printf("%o\n", a)…… 题解列表 2025年02月21日 0 点赞 0 评论 161 浏览 评分:0.0
3222: 蓝桥杯2024年第十五届省赛真题-回文数组 摘要:解题思路:注意事项:参考代码:n = int(input())arr = list(map(int,input().split()))length = int(len(arr) / 2)a=[0]*l…… 题解列表 2025年02月21日 0 点赞 0 评论 639 浏览 评分:0.0
递推公式:成虫繁殖 摘要:```cpp/*题目描述科学家在热带森林中发现了一种特殊的昆虫,这种昆虫的繁殖能力很强。每对成虫过x个月产y对卵,每对卵要过两个月长成成虫。假设每个成虫不死,第一个月只有一对成虫,且卵长成…… 题解列表 2025年02月21日 0 点赞 0 评论 281 浏览 评分:0.0
[信息学奥赛一本通T1498-Roadblocks] dijkstra扩展-链式前向星版 摘要:众所周知 dijkstra通常用来求单源最短路的问题但是此题需要求 第二短路我们只需要在dijkstra板子上略微修改 称之为--dijkstra扩展算法通常我们会开一个dist数…… 题解列表 2025年02月21日 1 点赞 0 评论 290 浏览 评分:10.0