koosaga   8년 전

He has decided that no two neighbouring pieces of his tune will consist of exactly the same sounds (counting repetitions). We will call such a tune good. More formally, let a = a1,...,ak be a tune. Then a is good if for any i, j, (1 ≤ i ≤ k-1 and i + 2j-1 ≤ k), the pieces ai, ..., ai+j-i and ai+j,..., ai+2j-1 do not use exactly the same sounds, i.e., the number of appearances of some sound is different for ai, ...,ai+j-1 and for ai+j, ..., ai+2j-1.

ai+j-i 가 아닌 ai+j-1 인거 같습니다.

-> He has decided that no two neighbouring pieces of his tune will consist of exactly the same sounds (counting repetitions). We will call such a tune good. More formally, let a = a1,...,ak be a tune. Then a is good if for any i, j, (1 ≤ i ≤ k-1 and i + 2j-1 ≤ k), the pieces ai, ..., ai+j-1 and ai+j,..., ai+2j-1 do not use exactly the same sounds, i.e., the number of appearances of some sound is different for ai, ...,ai+j-1 and for ai+j, ..., ai+2j-1.



baekjoon   8년 전

수정했습니다.

댓글을 작성하려면 로그인해야 합니다.