https://www.luogu.org/problem/P1086 https://www.luogu.org/problemnew/solution/P1086?page=7