摘要:
D. Almost Identity Permutations D. Almost Identity Permutations A permutation p of size n is an array such that every integer from 1 to n occurs exact 阅读全文
摘要:
A. Local Extrema You are given an array a. Some element of this array ai is a local minimum iff it is strictly less than both of its neighbours (that 阅读全文