摘要: 题目描述 你一定玩过八数码游戏,它实际上是在一个3×3的网格中进行的,1个空格和1~8这8个数字恰好不重不漏地分布在这3×3的网格中。 例如: 在游戏过程中,可以把空格与其上、下、左、右四个方向之一的数字交换(如果存在)。 <! more 例如在上例中,空格可与左、上、下面的数字交换,分别变成: 奇 阅读全文
posted @ 2019-07-08 13:53 小蒟蒻hlw 阅读(367) 评论(0) 推荐(0)
摘要: 题目描述 You will be given some integers in non decreasing order and each time the median is queried you have to report and remove it. Take the smaller el 阅读全文
posted @ 2019-07-08 13:51 小蒟蒻hlw 阅读(216) 评论(0) 推荐(0)