上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: STL的优先队列定义在<queue>中,用“priority_queue<int>pq”来声明。这个pq是越小的整数优先级越低的队列,由于出队元素不是先入队的元素,所以front()变为了top() 越小的整数优先级越大"priority_queue<int,vector<int>,greater< 阅读全文
posted @ 2021-01-31 18:59 loliconsk 阅读(108) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<map> #include<queue> using namespace std; int main(void) { int kcase = 0; int n;//有多少队伍 while (scanf("%d" 阅读全文
posted @ 2021-01-31 17:46 loliconsk 阅读(129) 评论(0) 推荐(0)
摘要: 函数 追踪电子表格中的单元格 信息解码 象棋 Ancient Cipher 条件 Box 周期串 Molar Mass Circular Sequence Digit Generator Master-Mind Hints(猜数字游戏提示) STL应用 Ananagrams 集合栈计算机 Andy' 阅读全文
posted @ 2021-01-30 23:18 loliconsk 阅读(82) 评论(0) 推荐(0)
摘要: linus进入root权限,输入sudo su 一、linux开关机操作与目录的认识使用 关机操作 : 根目录的认识和使用: 二、常用命令 绝对路径和相对路径 cd :切换目录命令 ./:当前目录(也可以cd后直接加名字) cd .. :返回上一级目录 cd ~:直接回到loliconsk目录 ls 阅读全文
posted @ 2021-01-30 13:19 loliconsk 阅读(106) 评论(0) 推荐(0)
摘要: #include<iostream> #include<set> #include<map> #include<vector> #include<stack> #include<algorithm> using namespace std; #define ALL(x) x.begin(),x.en 阅读全文
posted @ 2021-01-30 12:16 loliconsk 阅读(76) 评论(0) 推荐(0)
摘要: 一、遍历函数 1.for_each遍历函数 #include<iostream> using namespace std; #include<algorithm> #include<vector> //for_each遍历函数 //普通函数 void pri(int val) { cout << v 阅读全文
posted @ 2021-01-29 23:20 loliconsk 阅读(252) 评论(0) 推荐(0)
摘要: 一直不通过难受 #include<stdio.h> #include<string.h> int site[11][11]; int x[11]; int yy[11]; void show() { for (int i = 1; i < 11; i++) { for (int j = 1; j < 阅读全文
posted @ 2021-01-29 16:17 loliconsk 阅读(64) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> using namespace std; #include<map> #include<cctype> #include<algorithm> #include<vector> map<string, int > mp; str 阅读全文
posted @ 2021-01-29 16:11 loliconsk 阅读(84) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> using namespace std; #include<set> #include<sstream> int main(void) { set<string> sp;//set容器类似于集合,不会出现相同的值,并且会自动将值 阅读全文
posted @ 2021-01-29 14:40 loliconsk 阅读(61) 评论(0) 推荐(0)
摘要: 能否有大佬看看用我注释掉的地方为什么是错的,哭了 #include<stdio.h> #include<string.h> int two[400005]; int eight[400005]; char six[100005]; int trans(char s)//十六进制转十进制 { if ( 阅读全文
posted @ 2021-01-28 20:27 loliconsk 阅读(128) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页