counting https://www.luogu.com.cn/training/2019 DP https://www.luogu.com.cn/training/392500 DS https://www.luogu.com.cn/training/987078 Graph https://www.luogu.com.cn/training/992985