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

Re:测试数据都对,就是AC不了。望高手指点!

Posted by weide at 2008-09-24 19:32:39 on Problem 1256
In Reply To:测试数据都对,就是AC不了。望高手指点! Posted by:123456789987654321 at 2008-09-16 18:31:08
因为 next_permutation(b,b+len) 函数用错了,因为这个函数对 b数组排序时, 是按b的类型排的,而b在这里是字符类型,所以是按字符类型排的,也就是说next_permutation函数在这里对b数组排序是,会认为字符 'B' 是比字符'a' 小的。

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