Concise and clear CodeForces - 991F(dfs 有重复元素的全排列)

NoSuchKey