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

首次一次性AC搜索题,纪念!

Posted by ACong at 2009-03-26 15:01:18 on Problem 2362 and last updated at 2009-03-26 15:02:44
一开始还看错题了,以为是面积,我晕,还好先写个小代码判断所有边是否能围成正方形。
然后就根据1011的思想(虽然我还没过1011.。。),习惯性用3个参数的DFS,一个表示
从第几根木棍拼起,第二个表示已经拼接的长度,第三个表示正在拼接第几条边,辅助数
组存放各根木棍是否被拿,当拼的是第五条边以及所有木棍都被拿了,则返回1.
不过时间不是很快,要235MS哦.
过啦,太高兴啦,继续努力,争取省赛拿个三等奖,O(∩_∩)O

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