A&B 题解,蒟蒻太蒻了只会前两题 https://blog.nowcoder.net/n/31b880abfe5144e59f1820c23a118adb