C. Restoring Permutation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a sequence ...
Given a permutation p of length n, find its subsequence s1, s2, …, sk of length at least 2 such that: