Exemplo n.º 1
0
int mainmilk()
{
	std::ifstream fin("milk.in");
	std::ofstream fout("milk.out");
	std::multimap<unsigned, unsigned> data;

	unsigned targetMilk;
	fin >> targetMilk;

	MapData(data, fin);
	fout << MinCost(data, targetMilk) << std::endl;

	return 0;
}
Exemplo n.º 2
0
	void solve(void) {
		Input();
		Floyd();
		MakeGraph();
		printf("%lld\n", MinCost());
	}