Closed ChrisVilches closed 3 years ago
A new problem using a more compact Dijkstra has been added, so use that one in the future:
https://github.com/ChrisVilches/Algorithms/blob/main/uva/13010-galactic_taxes.cpp
NOTE: A user-provided Compare can be supplied to change the ordering, e.g. using std::greater
https://en.cppreference.com/w/cpp/container/priority_queue
This is what I did there ↑
Just use
pair<int, int>
without any extra information, and it should work properly.However, this problem only has two test cases, so it's not very reliable.