Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Hero
- {
- public int val;
- public int num;
- public static bool operator <(Hero a, Hero b)
- {
- return a.val < b.val || (a.val == b.val && a.num < b.num);
- }
- public static bool operator>(Hero a, Hero b)
- {
- return b < a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement