原创 hdu 2669

Description The Sky is Sprite. The Birds is Fly in the Sky. The Wind is Wonderful. Blew Throw the Trees Trees are

原创 F - 概率(經典問題)

Description Sometimes some mathematical results are hard to believe. One of the common problems is the birthday parad

原创 hdu 1465

Description 大家常常感慨,要做好一件事情真的不容易,確實,失敗比成功容易多了! 做好“一件”事情尚且不易,若想永遠成功而總從不失敗,那更是難上加難了,就像花錢總是比掙錢容易的道理一樣。 話雖這樣說,我還是要告訴大家,要

原创 概率

Description As Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everythin

原创 light oj1074

Description The people of Mohammadpur have decided to paint each of their houses red, green, or blue. They've also de

原创 hdu 1405

Description Tomorrow is contest day, Are you all ready? We have been training for 45 days, and all guys must be tire

原创 poj 3356

Description Let x and y be two strings over some finite alphabet A. We would like to transform x into y allowing on

原创 poj 4548

Description   小明對數的研究比較熱愛,一談到數,腦子裏就涌現出好多數的問題,今天,小明想考考你對素數的認識。   問題是這樣的:一個十進制數,如果是素數,而且它的各位數字和也是素數,則稱之爲“美素數”,如29,本身是素

原创 light oj 1317

Description You probably have played the game "Throwing Balls into the Basket". It is a simple game. You have to thro