Pagini recente » Diferente pentru tree-decompositions intre reviziile 91 si 60 | Diferente pentru problema/inel intre reviziile 2 si 3 | Diferente pentru problema/motel intre reviziile 3 si 2 | Diferente pentru problema/sumtree intre reviziile 27 si 26 | Diferente pentru problema/sumtree intre reviziile 17 si 16
Nu exista diferente intre titluri.
Diferente intre continut:
The first line of the input will contain $N$ (1 ≤ $N$ ≤ 100000), the number of nodes. The second line will contain $N$ numbers, the $i-th$ number, representing the value[i] (1 ≤ $value[i]$ ≤ 30000). Each of the next $N - 1$ lines will contain a pair of nodes $(u, v)$, each representing an edge of the tree.
For tests worth $20$ points (1 ≤ $N$ ≤ 1000)
For tests worth $20$ more points, value[i] = value[ 1] for $i = 1, 2,...n$
For tests worth $20$ more points, value[i] = value[1] for $i = 1, 2,...n$
h2. Date de ieşire
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.