A https://blog.nowcoder.net/n/9b59e6fac58449fabeb63639fa6184c4 二分答案的做法