![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
codertcm
这个作者很懒,什么都没留下…
展开
-
ZOJ - 4034 Mahjong Sorting
DreamGrid has just found a set of Mahjong with 3M suited tiles and a White Dragon tile in his pocket. Each suited tile has a suit (Character, Bamboo or Dot) and a rank (ranging from 1 to M), and there...原创 2019-04-10 15:30:26 · 209 阅读 · 0 评论 -
ZOJ Problem Set - 4016 Mergeable Stack
题目连接 题意 有N个栈,三种操作。 1 a b 在栈a中压入b 2 a 弹出栈a的栈顶元素,若a栈为空,则输出"EMPTY",否则输出被弹出的栈顶元素。 3 a b 将b栈中的元素移到a栈上 思路 用STL 的stack 会 超时 用LIST 或 链表 Code #include <stdio.h> #include <iostream> using names...原创 2019-04-10 20:35:33 · 162 阅读 · 0 评论