Nikkei2019 2 final 逆にする函数
Step 1
Let's first consider it for a fixed sequence \(a[1..n]\). We want to count number of valid mappings \(f\) such that: $\(f(a_i) = a_{n-i+1}\)$
Let's first consider it for a fixed sequence \(a[1..n]\). We want to count number of valid mappings \(f\) such that: $\(f(a_i) = a_{n-i+1}\)$