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:请问,我的程序为什么WA了.先谢了.(内有代码)

Posted by gemenhao at 2006-06-26 21:55:27 on Problem 2833
In Reply To:请问,我的程序为什么WA了.先谢了.(内有代码) Posted by:wanpi0user at 2006-06-26 21:00:01
这个调用之前arr最好赋初值,
nth_element(arr + 0  , arr + low,  arr + num, greaterthan());
nth_element(arr + low, arr + high, arr + num, lessthan());
多个测试数据可能会出错,(arr + 0, arr + low)可能有
上个例子的数据而	

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