Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct cmp {
- bool operator() (int a, int b){
- return to_string(a) > to_string(b);
- }
- };
- priority_queue<int, vector<int>, cmp> q;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement