Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline bool cmp(const el a, const el b)
- {
- if (a.i==b.i)
- return a.s>b.s;
- else
- return a.i<b.i;
- }
- void sortare()
- {
- sort(v+1,v+n+1,cmp);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement