CCPC-Wannafly Winter Camp Day2 (Div1, onsite)(Power of Function-数位)
f(n,k)=k进制下n的数位和+位数-2分别考虑几种情况并check#includeusingnamespacestd;#defineFor(i,n)for(inti=1;i=k;i--)#defineRep(i,n)for(inti=0;i0;i--)#defineRepD(i,n)for(inti=n;i>=0;i--)#defineForp(x)for(intp=pre[x];p;p=ne