![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
饮酒在风里
这个作者很懒,什么都没留下…
展开
-
L2-023 图着色问题 vector应用 C++
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <map> #include <vector> #include <set> using namespace std; vector<...原创 2019-03-27 21:50:30 · 134 阅读 · 0 评论 -
Educational Codeforces Round 47 (Rated for Div. 2)--A. Game Shopping( 队列queue)
Maxim wants to buy some games at the local game shop. There arenngames in the shop, theii-th game costscici. Maxim has a wallet which can be represented as an array of integers. His wallet contai...原创 2019-01-23 18:58:46 · 179 阅读 · 0 评论 -
TOJ 1036 火车进站问题(栈 c++ )
There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to e...原创 2018-09-27 17:17:27 · 2160 阅读 · 0 评论 -
栈的基本操作 c++
#define MAXSIZE 1000 struct stack { int data[MAXSIZE]; //存储数据的数组 int top; //栈顶 } bool empty(stack &s){ return s.top==0; //判断栈是否为空 } bool full(stack &s){ return ...原创 2018-09-26 22:15:08 · 1074 阅读 · 0 评论 -
士兵队列训练问题 (队列 c++)
士兵队列训练问题 Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12321Accepted Submission(s): 5441 Problem Description 某部队进行新兵队列训练,将新兵从一开始按顺序依...原创 2018-09-25 21:26:50 · 3019 阅读 · 1 评论 -
hdu 2112 HDU Today 最短路(floyd+map)
HDU Today Time Limit: 15000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 43168Accepted Submission(s): 10295 Problem Description 经过锦囊相助,海东集团终于度过了危机,从...原创 2019-07-08 20:10:22 · 189 阅读 · 0 评论 -
拓扑排序入门题-B - 产生冠军 (判环,map)
B - 产生冠军 有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。 球赛的规则如下: 如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么就认定,A一定能打败C。 如果A打败了B,B又打败了C,而且,C又打败了A,那么A、B、C三者都不可能成为冠军。 根据这个规则,无需循环较量,或许就能确定冠军。你的任务就是面对一群比赛选手,在经过了若干场撕杀之后,确定...原创 2019-07-10 11:07:20 · 133 阅读 · 0 评论