摘要: Description 在2016年,佳媛姐姐喜欢上了数字序列。因而他经常研究关于序列的一些奇奇怪怪的问题,现在他在研究一个难题,需要你来帮助他。这个难题是这样子的:给出一个1到n的全排列,现在对这个全排列序列进行m次局部排序,排序分为两种:1:(0,l,r)表示将区间[l,r]的数字升序排序2:( 阅读全文
posted @ 2017-10-13 20:31 PIPIBoss 阅读(145) 评论(0) 推荐(0)
摘要: Description Byteasar the gardener is growing a rare tree called Rotatus Informatikus. It has some interesting features: The tree consists of straight 阅读全文
posted @ 2017-10-13 19:11 PIPIBoss 阅读(198) 评论(0) 推荐(0)
摘要: Description 永无乡包含 n 座岛,编号从 1 到 n,每座岛都有自己的独一无二的重要度,按照重要度可 以将这 n 座岛排名,名次用 1 到 n 来表示。某些岛之间由巨大的桥连接,通过桥可以从一个岛 到达另一个岛。如果从岛 a 出发经过若干座(含 0 座)桥可以到达岛 b,则称岛 a 和岛 阅读全文
posted @ 2017-10-13 16:56 PIPIBoss 阅读(179) 评论(0) 推荐(0)
摘要: Description Now Coach Pang is preparing for the Graduate Record Examinations as George did in 2011. At each day, Coach Pang can: "+w": learn a word w 阅读全文
posted @ 2017-10-13 15:21 PIPIBoss 阅读(196) 评论(0) 推荐(0)