摘要: (1)图论题双向边一般开两倍(有关边的数组); (2)以图论为例的写法: void add(int x,int y,int len){ nxt[++tot]=fst[x]; fst[x]=tot;//tot是指针,不能写成nxt[tot] w[tot]=len; to[tot]=y; //双向边要多 阅读全文
posted @ 2019-04-26 18:44 蒟蒻魔芋汤 阅读(160) 评论(0) 推荐(0) 编辑