poj1700 Crossing River

jlqwer 发表于 代码 分类,标签: oj C语言 贪心 ACM 热度:130°
AgroupofNpeoplewishestogoacrossariverwithonlyone boat,whichcanatmostcarrytwopersons.Thereforesomesortof shuttlearrangementmustbearrangedinordertorowtheboatbackand forthsothatallpeoplemaycross.Eachpersonhasadifferentrowing speed;thespeedofacoupleisdeterminedbythespeedoftheslower one.Yourjobistodetermine...