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 |
Re:测试数据都对,就是AC不了。望高手指点!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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator