Search found 1 match

by Tuz
Mon Sep 28, 2009 7:16 am
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 17165

Re: 11686 - Pick up sticks - possible in Java?

you can try this:
struct edge_t
{
int u;
int v;
int next;
};
int first[MAXN];
int tot;
void add_edge(int u, int v)
{
e[++tot].u = u; e[tot].v = v; e[tot].next = first; first = next;
}

Go to advanced search