priority_queue优先队列,简单介绍 摘要:STL优先队列:priority_queueSTL中的优先队列也是一种队列(queue),但平时我们使用的队列不同的在于我们可以自定义其中数据的优先级, 让优先级高的排在队列前面,可以理解为一个时刻都…… 文章列表 2019年05月16日 5 点赞 1 评论 365 浏览 评分:9.9
并查集-模板(自用) 摘要:并查集模板题目--对应题目为洛谷的并查集模板(搜一下就可以了)#include<iostream> #define hh ios::sync_with_stdio(false),cin.tie(0)…… 文章列表 2019年05月09日 2 点赞 0 评论 807 浏览 评分:0.0
问题 1106: 奖学金[C++描述] 摘要:#include <bits/stdc++.h> using namespace std; struct stu { int id; //学生的学号 int…… 文章列表 2019年05月08日 3 点赞 0 评论 662 浏览 评分:9.7
问题 1031: [编程入门]自定义函数之字符串反转[C++描述] 摘要:#include <bits/stdc++.h> using namespace std; int main() { string str; getline(cin,st…… 文章列表 2019年05月08日 0 点赞 0 评论 603 浏览 评分:0.0
问题 1026: [编程入门]数字逆序输出[C++描述] 摘要:#include <bits/stdc++.h> using namespace std; int main() { stack<int> s; for(int i = …… 文章列表 2019年05月08日 0 点赞 0 评论 822 浏览 评分:9.9
问题 1755: 姓名排序[C++描述] 摘要:#include <bits/stdc++.h> using namespace std; int main() { int m; cin >> m; whil…… 文章列表 2019年05月07日 1 点赞 0 评论 825 浏览 评分:0.0
问题 1749: 字符排序[C++求解] 摘要:#include <bits/stdc++.h> using namespace std; void fuckingsort(char *arr) { for(int i = 0;…… 文章列表 2019年05月07日 0 点赞 0 评论 516 浏览 评分:0.0
求四位吸血鬼数字 摘要:吸血鬼数字是指位数为偶数的数字,可以由一对数字相乘而得到,而这对数字各包含乘积的一半位数的数字,其中从最初的数字中选取的数字可以任意排序。如1260 = 21 * 60 1827 = 21 * 87…… 文章列表 2019年05月05日 6 点赞 0 评论 842 浏览 评分:0.0
1951 求平方和 摘要:#include<stdio.h>#include<math.h>int main(){int a,b,c=0;scanf("%d%d",&a,&b);c=pow(a,2)+pow(b,2);prin…… 文章列表 2019年05月05日 0 点赞 0 评论 518 浏览 评分:0.0
数据结构之图的创建(邻接矩阵法) 摘要:#include<iostream> #include <cstdio> #include <cstdlib> using namespace std; //图的邻接矩阵存储结构 typed…… 文章列表 2019年04月23日 1 点赞 0 评论 1032 浏览 评分:0.0