level 10
如40通过一个什么样的方法可以拆成5361473281之类的
2014年05月11日 14点05分
1
level 11
为啥不先把一个数随机拆成3个或者4个,然后以此类推拆成10个。
2014年05月12日 00点05分
4
我想最好拆分后的数字 能符合正态分布
2014年05月12日 01点05分
level 12
这个得用递归来解决~~
最快的办法是没想到 因为 “最快” 这两个字 实则是难度太大 要精通数学吧
这不是程序问题 是数学问题
2014年05月12日 18点05分
6
level 3
我试了一下,应该可以
<%
num=40
i=0
function rand1(n,i)
i=i+1
min=n-9*(10-i)
if min<1 then min=1
max=n-(10-i)
if max>9 then max=9
randomize()
x=int((max-min+1)*rnd()+min)
if i<11 then rand1=rand1&x&rand1(n-x,i)
end function
response.write rand1(40,0)
%>
2014年05月12日 22点05分
7
![[真棒]](/static/emoticons/u771fu68d2.png)
非常感谢
2014年05月12日 23点05分