链式前向星存图及注意要点
摘要:
###存图代码实现 int head[M],cnt; struct note { int to,nex; }edge[M]; inline void add(int a,int b,int d) { edge[++cnt].nex=head[a]; edge[cnt].to=b; head[a]=c 阅读全文
posted @ 2020-08-21 17:25 正放的瓶塞 阅读(124) 评论(2) 推荐(1) 编辑