Redirecting to
NADOS

Cats And Tree

.

https://www.codechef.com/problems/CATS
Input Format
.
Output Format
.
Question Video
Constraints
.
Sample Input
10
0 1 2 3 3 1 6 6 6 1
5 6 3 4 2 1 7 8 9 10
Sample Output
4
1
2
2
0
0
1
1
1
1


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name