数列排序- 模拟+数组元素移动 摘要:解题思路:模拟+数组元素移动+插入数组注意事项:参考代码:#include<iostream>usingnamespacestd;constin…… 题解列表 2025年03月25日 0 点赞 0 评论 523 浏览 评分:0.0
c++热浪(贪心+优先队列) 摘要:```cpp#include #include using namespace std;const int INF=0x3f3f3f3f;int T,C,Ts,Te;vec…… 题解列表 2025年03月25日 0 点赞 0 评论 338 浏览 评分:0.0
最短路径(bellman-ford) 摘要:```c#include #include using namespace std;const int INF=0x3f3f3f3f;struct Node{ int…… 题解列表 2025年03月25日 0 点赞 0 评论 391 浏览 评分:0.0
字符串的翻转条件判定 摘要:解题思路:找到合适反转的条件注意事项:注意边界问题,别超数组参考代码:import java.util.Scanner;public class test { public …… 题解列表 2025年03月25日 0 点赞 0 评论 464 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:#include #include int ff(int a){ int tem=0; int sum=0; int flag=a; while(a>0) { …… 题解列表 2025年03月25日 3 点赞 0 评论 768 浏览 评分:10.0
c++最优乘车dijsktra(BFS) 摘要:解决输入情况:核心:string line和getline(cin,line)和istringstream iss(line);此时iss可以跳过空格读取这一行的数据string s;iss>>s;…… 题解列表 2025年03月25日 0 点赞 0 评论 354 浏览 评分:0.0
A+B的处理方式 解题思路:先考虑自然数的输入——input(),再考虑把input()所输入的数据最前端和最后变的多余空格进行删除处理——strip(),处理之后接着再按每个数据之间的空格进行分割、同时转换成列表中的单个数据,这个时候再用map()函数将列表中的各个数据都转换成int——map(int, 题解列表 2025年03月24日 3 点赞 0 评论 1922 浏览 评分:4.7
景区导游(LCA详解) #includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;intfa[N][21],deep[N];vectortree[N],tep[N];llpath[N];intn, 题解列表 2025年03月24日 0 点赞 0 评论 552 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int judge(int n)//设置一个判断该数是否为好数的函数{ int p=1; //p记录位数,因为从…… 题解列表 2025年03月24日 9 点赞 0 评论 1520 浏览 评分:10.0
选择排序:简单实现 解题思路:使用注意事项://此题有坑!//1.测试数据有多组!!!!//2.数据点2猜测包含有100个char的名字,因此name需要分配101的空间参考代码:#include#include#include#include 题解列表 2025年03月24日 0 点赞 0 评论 549 浏览 评分:0.0 « 12...166167168169170171172...59115912 »