← Home
wrong answer on test 5
input:9
1 2
1 3
3 4
1 5
1 6
4 7
7 8
1 9
expected:6 10
1 1 2 1 1 1 1 1 1
got:6 10
1 1 1 2 1 1 1 1 1