摘要:
Holy Grail 限制 1000 ms 256 MB As the current heir of a wizarding family with a long history,unfortunately, you fifind yourself forced to participate in 阅读全文
摘要:
Greedy Sequence 限制 5000 ms 256 MB You're given a permutation a of length n (1 ≤ n ≤ 105). For each i ∈ [1, n], construct a sequence si by the followin 阅读全文