| ||||||||||
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:你们说的暴力是4^26? 这也暴的忒过分了吧...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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator