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:抓狂啊。死活都是TLE

Posted by buffonzeng at 2007-02-20 13:47:04 on Problem 1027
In Reply To:Re:抓狂啊。死活都是TLE Posted by:yangguo981 at 2006-06-22 21:53:33
> 我的方法如下:每次,搜索全图,找到最多的球,同时也计算出本次可以去掉的最多球数以及对应的位置。这个是不能少的了吧?然后再压缩图,循环直到结束。打印结果。压缩图的时候就是先列,再行。还有哪里可以优化的吗????吐血啊。
> 搞定了,自己写了个stack,没用stl的,g++勉强通过了800多ms,c++不通过,ft死。算了,不管了~

这样能过?数据不会弱到这种程度吧?
RRRRR
BBBGG
RRRRR
单这个例子就wa了吧?

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