Diferente pentru problema/sumtree intre reviziile #2 si #1
Nu exista diferente intre titluri.
Diferente intre continut:
== include(page="template/taskheader" task_id="sumtree") ==
You are given a tree with $N$ nodes. Each node has values assignedto it, value[i].Youmustcalculatethe sum cost of every pairnodes $(u, v)$, where $gcd(value[u], value[v]) > 1$ and $u$ ≠ $v$
Poveste şi cerinţă...
h2. Date de intrare
