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:把边的编号从0开始就ac了,从1开始就sort出错,真是弄不懂STL啊

Posted by MenHaoJie at 2016-09-07 15:11:49 on Problem 3723
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:
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