双向循环链表带图详解 摘要:初学者对于链表不是很熟悉,可以借助画图来理清思路,帮助解题  摘要:解题思路:在有解的情况下,初始状态和目标状态中不一样的位置个数一定是偶数,所以不一样的位置是成对出现的,要将初始状态变为目标状态,就应该把不一样的位置交换,要操作步数最少,就应该把相邻的交换(因为这样…… 题解列表 2022年11月07日 0 点赞 0 评论 488 浏览 评分:9.9
2878: 计算矩阵边缘元素之和 摘要:解题思路:先去除四个角的元素,然后再把它们加上。注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int…… 题解列表 2022年11月07日 0 点赞 0 评论 420 浏览 评分:6.0
2919: 奖学金(c++) 摘要:```cpp #include using namespace std; typedef struct Stu { int hao;//学号 int a;//语文成绩 int b;/…… 题解列表 2022年11月07日 0 点赞 0 评论 419 浏览 评分:9.9
题解 2912: 最长平台 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n,count=1,max=1,a[10…… 题解列表 2022年11月07日 0 点赞 0 评论 348 浏览 评分:0.0
C语言字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[5]; gets(a); for(int i=0;i<3;i++) …… 题解列表 2022年11月06日 0 点赞 0 评论 208 浏览 评分:0.0
P2440(仅提供思路) 摘要:解题思路:本题等价于:有一张有 m 条边的有向图,在图中补上若干条边使得存在一条欧拉路径可以覆盖图中每一条边仅一次。求补边后整张图边数的最小值。设一个连通块中,每个点入度减去出度的值之和为 t。若 t…… 题解列表 2022年11月06日 0 点赞 0 评论 275 浏览 评分:9.9
P1371(C++题解) 摘要:解题思路:暴力搜索加最优化剪枝注意事项:不想填(滑稽)参考代码:#include<cstdio> #include<cstring> #include<iostream> using names…… 题解列表 2022年11月06日 0 点赞 1 评论 284 浏览 评分:9.9
有问题的测试点QAQ 摘要:解题思路:按照题目意思做即可注意事项:有个测试点是错误的,加个if就行了参考代码:#include<bits/stdc++.h> using namespace std; double n,m; …… 题解列表 2022年11月06日 0 点赞 1 评论 660 浏览 评分:9.9
1251: 统计字母个数(c++代码) 摘要:```cpp #include using namespace std; int main(){ string s; int a[123]={};//定义一个数组来存储字母个…… 题解列表 2022年11月06日 0 点赞 0 评论 405 浏览 评分:9.9