DrawOutAward
抽奖 M?n 

所属分类:Java编程
开发工具:Java
文件大小:1KB
下载次数:24
上传日期:2010-03-15 00:20:21
上 传 者youknow2
说明:  某企业为了促销,搞抽奖宣传活动,奖品为新款手机一部,抽奖规则如下:   (1)有n个盒子摆成一圈,盒子按顺时针方向依次编号为0,1,2,……,n-1。手机随机放在其中一个盒子中。(n为自然数)   (2)从0号盒子开始摸奖,顺时针方向计数,每遇到第m个盒子就摸奖一次。(m为自然数,m<n)   (3)直到重新摸到0号盒子为止。
(A company for promotional purposes, engage in lottery promotional activities, prizes for the new phones a lucky draw rules are as follows: (1) has n-boxes placed in a circle, box clockwise followed by numbered 0,1,2, ... ..., n-1. Were randomly placed in one of the phone box. (N is natural number) (2) the box number from 0 starting Mojiang, counting clockwise, when confronted with the first m-box on the Mojiang time. (M is natural number, m <n)   (3)直到重新摸到0号盒子为止。)

文件列表:
DrawOutAward.java (1234, 2009-10-30)

近期下载者

相关文件


收藏者