Actually, the previous solution's list is not necessary. Since the total weight is 10 (5+2+2+1). We can just generate a random integer between 1 ...
確定! 回上一頁