C++选择排序从小到大 摘要:#include<iostream>using namespace std;int main(){ int arr[10]; int min…… 题解列表 2025年10月06日 0 点赞 0 评论 451 浏览 评分:0.0
[STL训练]周瑜的反间计:利用vector<vector<int>>存储数据,之后利用二分法查询,结构清晰 摘要:1、解题思路:利用vector<vector<int>>存储数据,之后利用二分法查询,打印输出。2、注意事项:注意每个case后有一个空行。3、参考代码:#include<…… 题解列表 2025年10月06日 2 点赞 0 评论 261 浏览 评分:10.0
优先队列实现看病,取消同步流避免超时 摘要:解题思路:优先队列,实现看病案例注意事项:取消同步流,避免超时参考代码://看病 取消同步流,加快速度#include <bits/stdc++.h>using namespace std…… 题解列表 2025年10月04日 0 点赞 0 评论 235 浏览 评分:4.0
哥德巴赫曾猜测思路简单解 摘要:解题思路:注意事项:参考代码:#include<iostream>#define MAX 32767using namespace std;bool isPrime(int num){&n…… 题解列表 2025年09月29日 0 点赞 0 评论 417 浏览 评分:7.0
优雅的代码往往只需要一个简单的偏移量就能搞定! 摘要: #include #include #include #include using namespace std; const int dx[] = {-2,-2,2,2,1,-1…… 题解列表 2025年09月29日 3 点赞 0 评论 323 浏览 评分:10.0
编写题解 3106: 最优乘车(travel) 摘要:C++代码:```cpp#include #include #include #include using namespace std;const int INF=0x3f…… 题解列表 2025年09月27日 1 点赞 0 评论 325 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1…… 题解列表 2025年09月24日 0 点赞 0 评论 530 浏览 评分:0.0
2799: 奥运奖牌计数 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int n; int a…… 题解列表 2025年09月24日 0 点赞 0 评论 451 浏览 评分:0.0
1231: 杨辉三角 简洁 可读性高 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespacestd;in…… 题解列表 2025年09月22日 0 点赞 0 评论 539 浏览 评分:0.0
2914: 铺地毯 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>using…… 题解列表 2025年09月22日 0 点赞 0 评论 378 浏览 评分:0.0