Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:这题的最优解指什么呢?还有直接枚举能过么?

Posted by sheeper at 2013-02-06 00:18:14 on Problem 1601
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator