线性基:https://www.cnblogs.com/ljh2000-jump/p/5869991.html#4219854

数位DP  https://blog.csdn.net/jk211766/article/details/81474632