Pagini recente » Diferente pentru utilizator/arkiny intre reviziile 28 si 29 | Istoria paginii utilizator/dana.jebelean | Unda | Monitorul de evaluare | Diferente pentru problema/christmas-balls intre reviziile 4 si 3
Nu exista diferente intre titluri.
Diferente intre continut:
h2. Date de intrare
The first line of the input file $christmas-balls.in$ contains the only integer $N$ ($1 \le N \le 10^5$), the number of nodes of the tree.
The first line of the input file $christmasballs.in$ contains the only integer $N$ ($1 \le N \le 10^5$), the number of nodes of the tree.
The second line contains $N$ integers $C_i$ ($0 ≤ C_i < N$), the colors of each ball.
h2. Exemplu
table(example). |_. christmas-balls.in |_. christmas-balls.out |
table(example). |_. christmasballs.in |_. christmasballs.out |
| 8
1 2 0 2 0 0 1 1
0 0 1 1 3 4 4
| 3
|
table(example). |_. christmas-balls.in |_. christmas-balls.out |
table(example). |_. christmasballs.in |_. christmasballs.out |
| 5
0 1 1 0 0
0 1 2 3
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.