2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int flag[30]; int main() { str…… 题解列表 2023年10月21日 0 点赞 0 评论 256 浏览 评分:9.9
1720: 数据结构-基数排序 摘要:解题思路:注意事项:参考代码://sort排序#include <bits/stdc++.h>using namespace std;int a[100005];int main(){ int …… 题解列表 2023年10月21日 0 点赞 0 评论 201 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 163 浏览 评分:0.0
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main() { double a; cin…… 题解列表 2023年10月21日 0 点赞 0 评论 200 浏览 评分:9.9
2973: 出现次数超过一半的数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 319 浏览 评分:0.0
C++;简单密码 摘要:参考代码:#includeusing namespace std;char c[1000];int main(){ cin.getline(c,200);//有空格,所以要用“cin.getli…… 题解列表 2023年10月21日 0 点赞 0 评论 270 浏览 评分:9.9
C++_DFS(深度优先搜索) 摘要:参考代码:#include<iostream>#include<algorithm>#include<cstdio>using namespace std;int const N =30;int n,…… 题解列表 2023年10月20日 0 点赞 0 评论 393 浏览 评分:9.5
使用C++STL库中的优先队列 摘要:解题思路:使用C++中的STL库中的优先队列,使用结构体定义一个比较函数进行排序,之后在主函数中使用优先队列输出注意事项:注意结构体里边比较逻辑的写法,这是容易出错的地方参考代码:#include<i…… 题解列表 2023年10月20日 0 点赞 0 评论 165 浏览 评分:0.0
题目 1770: [编程入门]链表之报数问题 摘要:解题思路:注意事项:参考代码: #include <iostream>using namespace std;struct person{ int num; person* next;};int ma…… 题解列表 2023年10月20日 0 点赞 0 评论 227 浏览 评分:9.9
手写队列解决滑动窗口 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N = 1e7 + 10, M = …… 题解列表 2023年10月19日 0 点赞 0 评论 248 浏览 评分:0.0