|
|
вернуться в форумWhy I get TLE when I use forwards star but AC for vector? // forwards star int num,adj[10005]; struct edge {int v,pre;}e[10005]; void insert(int u,int v) { e[num].v=v; e[num].pre=adj[u]; adj[u]=num++; } for(i=adj[x];~i;i=e[i].pre) { } Edited by author 02.08.2011 07:19 |
|
|