Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
wa的注意了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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator