摘要: 饭卡 Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售, 阅读全文
posted @ 2016-02-20 15:45 ACMSaga 阅读(380) 评论(0) 推荐(0)
摘要: Robberies Problem Description The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the en 阅读全文
posted @ 2016-02-20 13:28 ACMSaga 阅读(240) 评论(0) 推荐(0)