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:把边的编号从0开始就ac了,从1开始就sort出错,真是弄不懂STL啊In Reply To:Re:把边的编号从0开始就ac了,从1开始就sort出错,真是弄不懂STL啊 Posted by:MenHaoJie at 2016-09-07 15:10:01 有一次听我队友说是需要从0开始排序n个元素的时候需要sort(a,a+n),但是从1开始就需要sort(a+1,a+n+1)这样就可以了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator