#include <cstring> int f[10000]; memset(f,0x3f,sizeof(f)); 或 f[i]=0x7fffffff; 文章导航 亲戚P3916 图的遍历(邻接表法)