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

wa了三次,居然是读入有问题。。。。o(2^4)

Posted by Gamor at 2008-12-18 22:12:21 on Problem 1753
记住读入一行后千万要读入一个回车符啊。。。。
不然老是哇。。。。。

我都无语了。

就是简单的枚举。不过用局部枚举可以是时效更好,但用全没去就可以了也只要o(2^16),如果用局部枚举可以达到o(2^4),呵呵。。。。差不多是神速吧。

局部枚举就是枚举第一行的情况就好了,然后分别处理2,3,4行的,这里不说了,如果有问题的发邮件给我吧.

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