
差分约束
文章平均质量分 88
dcx2001
这个作者很懒,什么都没留下…
展开
-
【BZOJ1077】【SCOI2008】天平
Description 你有n个砝码,均为1克,2克或者3克。你并不清楚每个砝码的重量,但你知道其中一些砝码重量的大小关系。你把其中两个砝码A和B放在天平的左边,需要另外选出两个砝码放在天平的右边。问:有多少种选法使得天平的左边重(c1)、一样重(c2)、右边重(c3)?(只有结果保证惟一的选法才统计在内) Input 第一行包含三个正整数n,A,B(1<=A,B<=N,A和B不相等)原创 2017-10-07 07:13:43 · 274 阅读 · 0 评论 -
【POJ1275】Cashier Employment
DescriptionA supermarket in Tehran is open 24 hours a day every day and needs a number of cashiers to fit its need. The supermarket manager has hired you to help him, solve his problem. The problem原创 2017-09-22 07:53:37 · 363 阅读 · 0 评论