#include "stdafx.h"
#include <iostream>
#include <fstream>
using namespace std;
const int max_n = 100;//程序支持的最多金礦數
const int max_people = 10000;//程序支持的最多人數
int n;//金礦數
int peopleTotal;//可以用于挖金子的人數
int peopleNeed[max_n];//每座金礦需要的人數
int gold[max_n];//每座金礦能夠挖出來的金子數
int maxGold[max_people][max_n];//maxGold[j]保存了i個人挖前j個金礦能夠得到的最大金子數,等于-1時表示未知