As a doll master, Alice owns a wide range of dolls, and each ofthem has a number tip on it's back, the tip can be treated as a positiveinteger. (the number can be repeated). One day, Alice hears that her bestfriend Marisa's birthday is coming , so she decides to sent Marisa some dollsfor present. Alice puts her dolls in a row and marks them from 1 to n. Each time Alice choosesan interval from i to j in the sequence ( include i and j ) , and then checks the number tips ondolls in the interval from right to left. If any number appears more than once, Alice will treat this interval as unsuitable. Otherwise, this interval willbe treated as suitable.<o:p></o:p>
This work is so boring and it will waste Alice a lot of time. SoAlice asks you for help .<o:p></o:p>