Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct nod {
- int x , y, c;
- bool operator < (const nod &A) const {
- return c > A.c;
- }
- }xx;
- priority_queue < nod > Q;
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- struct fcmp {
- bool operator () (int x, int y) {
- return D[x] > D[y];
- }
- };
- priority_queue < int, vector < int >, fcmp > Q;
Advertisement
Add Comment
Please, Sign In to add comment