2013年3月7日

UVA10020 - Minimal coverage

摘要: Minimal coverageThe ProblemGiven several segments of line (int the X axis) with coordinates [Li,Ri]. You are to choose the minimal amount of them, such they would completely cover the segment [0,M].The InputThe first line is the number of test cases, followed by a blank line.Each test case in the in 阅读全文

posted @ 2013-03-07 16:25 仗剑奔走天涯 阅读(302) 评论(0) 推荐(0) 编辑

UVA10026 - Shoemaker's Problem

摘要: Shoemaker's ProblemShoemaker has N jobs (orders from customers) which he must make. Shoemaker can work on only one job in each day. For each ithjob, it is known the integer Ti(1<=Ti<=1000), the time in days it takes the shoemaker to finish the job. For each day of delay before starting to 阅读全文

posted @ 2013-03-07 02:12 仗剑奔走天涯 阅读(237) 评论(0) 推荐(0) 编辑

导航