https://www.luogu.com.cn/problem/CF1036C https://codeforces.com/contest/855/problem/E https://www.luogu.com.cn/problem/CF427C