摘要: 链接:https://www.nowcoder.com/acm/contest/141/A来源:牛客网 Eddy was a contestant participating in ACM ICPC contests. ACM is short for Algorithm, Coding, Math 阅读全文
posted @ 2018-07-26 20:36 行远山 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Description 作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的找袜子过程,于是他决定听天由命……具体来说,小Z把这N只袜子从1到N编号,然后从编号L到R(L 尽管小Z并不在意两只袜子是不是完整的一双,甚至不在意两只袜子是 阅读全文
posted @ 2018-07-26 20:00 行远山 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Problem Description In a galaxy far, far away, there are two integer sequence a and b of length n.b is a static permutation of 1 to n. Initially a is 阅读全文
posted @ 2018-07-26 10:33 行远山 阅读(309) 评论(0) 推荐(0) 编辑