SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Comp {
  2.         const vector<int>& nums;
  3.         explicit Comp(const vector<int>& nums): nums(nums) {}
  4.        
  5.         bool operator()(const slot_type& lhs, const slot_type& rhs) const {
  6.             return nums[lhs.second] - nums[lhs.first] > nums[rhs.second] - nums[rhs.first];
  7.         }
  8.     };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top