hdu1538专题

【HDU1538】A Puzzle for Pirates(经典的海盗问题)

【题目】 Description A bunch of pirates have gotten their hands on a hoard of gold pieces and wish to divide the loot. They are democratic pirates in their own way, and it is their custom to make su