Permutations CSES Solution
A permutation of integers 1,2,…,n1,2,…,n is called beautiful if there are no adjacent elements whose difference is 11. Given n, construct a beautiful permutation if such a permutation exists. Input The only input line contains an …