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 suncongbo at 2017-05-07 17:57:21 on Problem 3723
In Reply To:把边的编号从0开始就ac了,从1开始就sort出错,真是弄不懂STL啊 Posted by:bsblcc at 2015-11-24 21:06:11
把a数组从0至n-1排序
sort(a,a+n);
把a数组从1至n排序
sort(a+1,a+1+n);

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