摘要:
本题出自: Nordic Collegiate Programming Contest 2015 Ada, Bertrand and Charles often argue over which TV shows to watch, and to avoid some of their fights 阅读全文
摘要:
Let S(N)S(N) be digit-sum of NN, i.e S(109)=10,S(6)=6S(109)=10,S(6)=6. If two positive integers a,ba,b are given, find the least positive integer nn s 阅读全文