随笔分类 -  栈和容器

 
PAT 列车厢调度   (25分)(栈和容器的简单应用)
摘要:大家或许在某些数据结构教材上见到过“列车厢调度问题”(当然没见过也不要紧)。今天,我们就来实际操作一下列车厢的调度。对照上方的ASCII字符图,问题描述如下: 有三条平行的列车轨道(1、2、3)以及1-3和2-3两段连接轨道。现有一列车厢停在1号轨道上,请利用两条连接轨道以及3号轨道,将车厢按照要求 阅读全文
posted @ 2017-03-09 09:53 Annetree 阅读(2636) 评论(0) 推荐(0)
HDU 1022 Train Problem I(栈)
摘要:描述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 阅读全文
posted @ 2016-07-03 22:56 Annetree 阅读(155) 评论(0) 推荐(0)