類似0-1揹包的dfs:選與不選

題目鏈接:https://ac.nowcoder.com/acm/contest/331/D 題目大意: 思路:每個傳送陣可以選擇傳送或者不傳送。 從n->1開始考慮。從終點最遠的傳送陣開始枚舉 #include<bits/stdc++.h> using namespace std; #define LL long long struct NODE { int x, y; }node[16
相關文章
相關標籤/搜索