摘要: Problem In a kingdom there are prison cells (numbered 1 to P) built to form a straight line segment. Cells number i and i+1 are adjacent, and prisoner 阅读全文
posted @ 2017-09-19 22:24 人间失格—太宰治 阅读(421) 评论(0) 推荐(0) 编辑
摘要: King Mercer is the king of ACM kingdom. There are one capital and some cities in his kingdom. Amazingly, there are no roads in the kingdom now. Recent 阅读全文
posted @ 2017-09-19 19:59 人间失格—太宰治 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Nicholas Y. Alford was a cat lover. He had a garden in a village and kept many cats in his garden. The cats were so cute that people in the village al 阅读全文
posted @ 2017-09-19 18:24 人间失格—太宰治 阅读(256) 评论(0) 推荐(1) 编辑
摘要: 题目描述 【问题描述】 小 B 最近迷上了华容道,可是他总是要花很长的时间才能完成一次。于是,他想到用编程来完成华容道:给定一种局面, 华容道是否根本就无法完成,如果能完成, 最少需要多少时间。 小 B 玩的华容道与经典的华容道游戏略有不同,游戏规则是这样的: 在一个 n*m 棋盘上有 n*m 个格 阅读全文
posted @ 2017-09-19 13:08 人间失格—太宰治 阅读(201) 评论(0) 推荐(0) 编辑