标签:front logs 错位 style 易错点 ... ges first 变量
1 int t; 2 …… 3 if (……){ 4 int t=……; 5 } else { 6 t=……; 7 }
while (!q.empty()){ nownode=q.front(); nowedge=first[nownode]; //mark while (nowedge){ nowson=edges[nowedge].to; if (visit[nowson]) continue; //如果这个语句加在前面,可能会造成一个元素进队多次,导致……TLE。 if (......){ visit[nowson]=1; q.push(nowson); } nowedge=edges[nowedge].next; } }
【未完待续】
标签:front logs 错位 style 易错点 ... ges first 变量
原文地址:http://www.cnblogs.com/MyNameIsPc/p/7429290.html