|
|
back to boardCommon Boardany tricks to avoid TIME LIMIT for 1022?? help please. It seems to be a very normal BFS. but...I ,can't get through in time limit . Re: Strange... The problem's complexity is O(n+e) It is impossible to make TLE on this problem if your algorithm is topological sort (you can do it by DFS). Good luck. Maybe your program never finished on some test case I don't think this will happens,what a mess! > Sorry all,the problem I want is 1122,not 1022,forgive my mistake,and please do help. > > It seems to be a very normal BFS. > > but...I ,can't get through in time limit . Can who pass this problem with fast ,tell me the good method? > > > > It seems to be a very normal BFS. > > > > but...I ,can't get through in time limit . Hehe, 1122 --> 1022. BFS ---> Complete Search > > > > It seems to be a very normal BFS. > > > > but...I ,can't get through in time limit . Maybe some tricks can make the program much faster,mine is too slow,and I want to get the fastest method If you use Complete Search, You wont' get Timelimit. Belive me!! > |
|
|