Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:这题的最优解指什么呢?还有直接枚举能过么?In Reply To:这题的最优解指什么呢?还有直接枚举能过么? Posted by:150014 at 2007-05-09 08:49:02 用二进制法从小到大枚举的话不存在WA的问题,OJ是否用special judge就不知了 直接枚举可以过case不多,每个case最坏情况下2^16=65536次可以接受,用位运算判断当前枚举的状态是否可行比较便捷 另外题目貌似有错: "A pizza constraint is a list of 1 to 12 topping constraint lists each on a line by itself followed by a period on a line by itself. " case中最多有16个人吧好像 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator