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:你们说的暴力是4^26? 这也暴的忒过分了吧...

Posted by hmh0512 at 2010-08-01 15:08:32 on Problem 1129
In Reply To:你们说的暴力是4^26? 这也暴的忒过分了吧... Posted by:litter at 2009-11-26 16:07:24
这里与图着色稍有不同,不是已知有m色求涂法。而是已知m=1或2或3或4(因为题目已知是平面图,有四色定理可得)求m到底是多少。即搜到一种涂法则成功(flag=1)输出结果,不必搜索所有涂法。因为对于一组数据必有一个m,要么1要么2要么3要么4,因此程序最后flag不可能等于0。所有它的复杂度远比4^26小。

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