Pagini recente » Istoria paginii utilizator/adaardeleanu | Diferente pentru problema/sumtree intre reviziile 19 si 33 | Monitorul de evaluare | Atasamentele paginii David Gergely | 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 ≤ $N$ ≤ 100000
* 1 ≤ <tex>value_i</tex> ≤ 30000
* For the first subtask (1 ≤ $N$ ≤ 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.