DescriptionInputOutputSample Input1 7 1 2 2 3 2 4 4 6 5 6 6 7Sample Output3Hint,注意此注释有误,第二种情况应该为{1,2,4,5,6},{3},{7}SourcePlay with Tree By Amber