#P8248. 简单数列
简单数列
Description
You are given an integer . You need to construct an array of length (indices start from , and each element is one of or ), such that:
-
For the -th element, for all , the subarray is not equal to . ( means rounding down.)
-
In plain words, there are no two adjacent consecutive substrings that are identical.
Input Format
One line with one positive integer .
Output Format
One line with positive integers, the array .
3
1 2 3
6
1 2 3 4 1 3
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号