acmsguru |
---|
Finished |
sample input | sample output |
1 5 1 2 3 4 5 | Yes 1 -> 0 2 -> 0 3 -> 0 4 -> 0 5 -> 0 |
sample input | sample output |
2 2 1 2 1 3 | Yes 1 -> 1 2 -> 1 3 -> 0 |
sample input | sample output |
4 2 0 2 4 5 7 6 3 1 | Yes 0 -> 1 1 -> 0 2 -> 1 3 -> 0 4 -> 1 5 -> 0 6 -> 1 7 -> 0 |
Name |
---|