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的注意了

Posted by Akrusher at 2016-04-05 21:03:32 on Problem 3185
wa的注意了,不要通过判断a[0]=0来确定是否需要反转a[0],这样是错的
如下面的情况: 0 0 1 0 .....后面全是0,
这时如果反转a[0]需要2步,不翻转a[0]需要12步(不要问我是怎么知道的,因为这个wa了n次),

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