lrj《算法竞赛入门经典》例题,P89-91.程序中用struct实现了一个queue,类似STL,纯粹是为了调用方便.常用的数据结构都可以考虑这么处理.
题目的输出格式很纠结,这里有一份解题报告,上面的数据比较有代表性.
UVa的结果
# | Problem | Verdict | Language | Run Time | Submission Date | |
8176270 | 10935 | Throwing cards away I | Accepted | C++ | 0.016 | 2010-08-13 06:27:15 |