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:priority_queue一定要声明greater

Posted by WZY001 at 2018-05-19 21:06:53 on Problem 3255
In Reply To:priority_queue一定要声明greater Posted by:1300013015 at 2018-01-04 21:57:07
> 否则会一直TLE
的确,我也是用priority_queue时,自定义的struct重载operator<,函数体里写的还是小于号(当时不是很清楚原理),然后T了半天没找出来原因,改成大于就A了。。。

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