摘要: 题目描述 One day, Snuke was given a permutation of length N, a1,a2,…,aN, from his friend. Find the following: Constraints 1≤N≤200,000 (a1,a2,…,aN) is a pe 阅读全文
posted @ 2018-04-13 18:43 house_cat 阅读(242) 评论(0) 推荐(1) 编辑
摘要: 题目描述 Snuke is interested in strings that satisfy the following conditions: The length of the string is at least N. The first N characters equal to the 阅读全文
posted @ 2018-04-13 16:17 house_cat 阅读(475) 评论(0) 推荐(0) 编辑