https://codingnote.cc/zh-hans/p/248785/
C++ 算法