// UVa658 It's not a Bug, it's a Feature! // Rujia Liu #include #include #include using namespace std; struct Node { int bugs, dist; bool operator < (const Node& rhs) const { return dist > rhs.dist; } }; const int maxn = 20; const int maxm = 100 + 5; const int INF = 1000000000; int n, m, t[maxm], dist[1< q; Node start; start.dist = 0; start.bugs = (1<