hdu 4336 Card Collector[期望]

The first line of each test case contains one integer N (1 <= N <= 20), indicating the number of different cards you need the collect. The second line contains N numbers p1, p2, …, pN, (p1 + p2 + … + pN <= 1), indicating the possibility of each card to appear in a bag of snacks. Note there is at most one card in a bag of snacks. And it is possible that there is nothing in the bag.

,每个人的生命都是可以绽放美丽,只要你珍惜。

hdu 4336 Card Collector[期望]

相关文章:

你感兴趣的文章:

标签云: