集裝箱裝載問題

題目詳情:有一批n個集裝箱要裝上兩艘載重量分別爲weightone,weighttwo的輪船,其中,集裝箱i的重量爲weight【i】,如今要肯定是否存在一個合理的裝載方案能夠把全部的集裝箱裝上這兩個輪船。ios 實現代碼:spa #include <iostream> #include <vector> #include <algorithm> using namespace std; int
相關文章
相關標籤/搜索