Diferente pentru problema/sumtree intre reviziile #30 si #33

Nu exista diferente intre titluri.

Diferente intre continut:

h2. Date de ieşire
The output will contain the sum of costs over all pairs of nodes $(u, v)$, such that <tex>gcd(value[u], value[v]) > 1</tex>
The output will contain the sum of costs over all pairs of nodes $(u, v)$, such that <tex>gcd(value_u, value_v) > 1</tex>
h2. Restricţii
* 1 &le; $N$ &le; 100000
* 1 &le; <tex>value_i</tex> &le; 30000
* For the first subtask (1 &le; $N$ &le; 1000)
* For the second subtask, <tex> value[i] = value[1] </tex> for $i = 1, 2,...n$
* For the second subtask, <tex> value_i = value_1 </tex> for $i = 1, 2,...n$
h2. Exemplu

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.