‚Z”Šw‚ÌŽ¿–âƒXƒŒiˆãŽÒE“Œ‘呲ê—pj Part438 (373Ú½)
㉺‘OŽŸ1-V

373: 12/04(…)16:35 ID:M2J+bJMI(2/2) AAS
Wolfram Language 14.0.0 Engine for Microsoft Windows (64-bit)
Copyright 1988-2023 Wolfram Research, Inc.

In[1]:= solve[nn_,n_,m_]:=(
ass=Counts[#]& /@ Flatten[Table[Sort /@ IntegerPartitions[x,{n},Range[0,m-1]],{x,m*Range[0,n-1]}],1];
li=KeyValueMap[List,#]& /@ ass;
{q,r}=QuotientRemainder[nn,m];
c=Flatten@{Table[q+1,r],Table[q,m-r]};
m2c[x_] :=(
i=If[x[[1]]==0,m,x[[1]]];
Binomial[c[[i]],x[[2]]]);
È7
㉺‘OŽŸ1-VŠÖŽÊ”——õÝžx—ð
½Úî•ñ ÔÚ½’Šo ‰æ‘œÚ½’Šo —ð‚Ì–¢“Ç½Ú AA»ÑȲÙ

‚Ê‚±‚ÌŽè ‚Ê‚±TOP 0.889s*