This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
//这个程序能得90分,其中第九组数据应该输出55,但这个程序输出56,不知道为什么。
#include<cstdio>
#include<cstring>
intn,p,maxd;
intw[400];
typedefstructEdge
{
intfrom,to;
Edge*next;
Edge(intf,intt,Edge*n=0):from(f),to(t),next(n){}
}*lpEdge;
#define addEdge(Gp, x, y) (Gp)[x] = new Edge((x), (y), (Gp)[x]);