摘要: C. Constellation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Constellation time l 阅读全文
posted @ 2017-03-22 22:25 hnqw1214 阅读(270) 评论(0) 推荐(0) 编辑
摘要: A. Gerald's Hexagon time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Gerald's Hexagon 阅读全文
posted @ 2017-03-22 22:05 hnqw1214 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 题意:给出n张牌,标号为1-n,然后给出两个序列,序列1表示序列1,2,3,4……,n洗一次牌后到达的,序列2表示目标序列,问初始序列按序列1的洗牌方式洗几次能到达序列2的情况,如果不能到达输出-1。 题解:在初始序列和序列1的变换中找出1能变到那些牌,这些牌构成一个集合,这些集合中的牌必然是能够相 阅读全文
posted @ 2017-03-22 21:59 hnqw1214 阅读(510) 评论(0) 推荐(0) 编辑