摘要: 长度为n的环状串有n镇南关表示法,分别为从某个位置开始顺时针得到。在这些表示法中,字典序最小的称为“最小表示”。 输入一个长度为n(n<=100)的环状DNA串(只包含A,C,G,T)的一种表示法,你的任务是输出该环状串的最小表示。例如,CTCC的最小表示是CCCT。 字典序就是字符串在字典中的顺序 阅读全文
posted @ 2016-02-18 19:37 Not-Bad 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down 阅读全文
posted @ 2016-02-18 18:48 Not-Bad 阅读(212) 评论(0) 推荐(0) 编辑