
数据结构
文章平均质量分 67
fsqfang
这个作者很懒,什么都没留下…
展开
-
hdu 1022 Train problem I
Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is t原创 2014-08-15 15:03:14 · 337 阅读 · 0 评论 -
nyoj 括号配对
描述C小加有一些木棒,它们的长度和质量都已经知道,需要一个机器处理这些木棒,机器开启的时候需要耗费一个单位的时间,如果第i+1个木棒的重量和长度都大于等于第i个处理的木棒,那么将不会耗费时间,否则需要消耗一个单位的时间。因为急着去约会,C小加想在最短的时间内把木棒处理完,你能告诉他应该怎样做吗? 输入 第一行是一个整数T(1 每组测试数据的第一行是一个整数N(1<=N<=5000)原创 2014-08-14 22:54:50 · 418 阅读 · 0 评论 -
nyoj 129树的判定
树的判定 描述 A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following pr原创 2014-12-15 19:59:07 · 432 阅读 · 0 评论