Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <queue>
- using namespace std;
- struct node {
- int idx, shortest_time, money;
- node () {}
- node(int _idx, int _shortest_time, int _money) {
- idx = _idx;
- shortest_time = _shortest_time;
- money = _money;
- }
- bool operator < (const node & tmp) const {
- if(shortest_time == tmp.shortest_time) {
- return money > tmp.money;
- }
- return shortest_time > tmp.shortest_time;
- }
- };
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement