摘要: #include using namespace std;templateclass Stack{private: struct Node { T data; Node *next; }; Node *hea... 阅读全文
posted @ 2019-11-17 22:41 风骨散人 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include #define MaxSize 5000using namespace std;template class Stack{ T data[MaxSize]; int top;publ... 阅读全文
posted @ 2019-11-17 22:40 风骨散人 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 定义:栈是一种只能在某一端插入和删除数据的特殊线性表。他按照先进先出的原则存储数据,先进的数据被压入栈底,最后进入的数据在栈顶,需要读数据的时候从栈顶开始弹出数据(最后被压入栈的,最先弹出)。因此栈也称先进后出表... 阅读全文
posted @ 2019-11-17 22:40 风骨散人 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Problem Description小时候,乡愁是一枚小小的邮票,我在这头,母亲在那头。 —— 余光中集训是辛苦的,道路是坎坷的,休息还是必须的。经过一段时间的训练... 阅读全文
posted @ 2019-11-17 10:04 风骨散人 阅读(63) 评论(0) 推荐(0) 编辑
摘要: Descriptionliympanda, one of Ikki’s friend, likes playing games with Ikki. Today after minesweeping with ... 阅读全文
posted @ 2019-11-17 10:01 风骨散人 阅读(70) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionConflicts are everywhere in the world, from the young to the elderly, from families to ... 阅读全文
posted @ 2019-11-17 09:54 风骨散人 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Peaceful CommissionTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tot... 阅读全文
posted @ 2019-11-17 09:51 风骨散人 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #define MAXN 40000+10#define MAXM 200000+10#define I... 阅读全文
posted @ 2019-11-17 09:44 风骨散人 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Planet Krypton is about to explode. The inhabitants of this planet have to leave the planet immediately. B... 阅读全文
posted @ 2019-11-17 09:42 风骨散人 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Perfect ElectionTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 964 Accepted: 43... 阅读全文
posted @ 2019-11-17 09:23 风骨散人 阅读(98) 评论(0) 推荐(0) 编辑