摘要:
"poj3311 Hie with the Pie" 题目描述 共有n+1个点,问从点1出发走完所有点后回到1点所需要的最少时间 输入输出格式 输入格式: 第一行行一个数,n 接下来n+1行,每行n+1个数,表示从i到j的时间。 输出格式: 一个整数,表示最少时间。 cpp include incl 阅读全文
摘要:
"[USACO12MAR]摩天大楼里的奶牛Cows in a Skyscraper" 题目描述 给出n个物品,体积为w[i],现把其分成若干组,要求每组总体积 include include using namespace std; int n,w,a[20],f[300010],g[300010] 阅读全文