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