常见错误

当我们要存无向图并且我们需要标记边的时候,我们会从0开始存边

这时

for(int e = head[u];e;e = nxt[e])

会Wa,我们需要写:

for(int e = head[u];~e;e = nxt[e])
原文地址:https://www.cnblogs.com/nao-nao/p/13692602.html