标签:style blog color os io for ar art div
the algorithm is like this: it evenly spreads an integer N over K cells.
for i = 0 to K array[i] = N / K # integer division # divide up the remainder for i = 0 to N mod K array[i] += 1
divide an integer into X parts (as even as possible)
标签:style blog color os io for ar art div
原文地址:http://www.cnblogs.com/miaoz/p/3936329.html