裝載問題

#include "stdio.h" #include "stdlib.h" #define MAX 10 int n; //集裝箱個數 int c; //第一艘的載重 int x[MAX]; //臨時解向量空間 int bestx[MAX]; //最優解向量空間 int w[MAX]; //集裝箱重量 int cw; //當前載重 int r; //第一艘船剩餘載重 int b
相關文章
相關標籤/搜索