https://liuxueyang.github.io/posts/codeforces/1788c/
CodeForces 1788C Matching Numbers