poj1789,POJ 1789 Prim算法
// Prim1789.cpp
#include
#define MAX 2001
char types[MAX][8];
char dis[MAX][MAX];
char d[MAX];
#define INF 127
int prim(int n){ int i,j,k,ti; int mindis,total=0; d[0]=0; for(i=1;i // Prim1789.cpp : Defines the entry point for the console application.
// #include "stdafx.h"
#include
#define MAX 2001
char types[MAX][8];
char dis[MAX][MAX];
char d[MAX];
#define INF 127
int prim(int n){ int i,j,k,ti; int mindis,total=0; d[0]=0; for(i=1;i
Tags:
延伸阅读
最新评论