#Lutece1642. 老当益壮, 宁移白首之心?
老当益壮, 宁移白首之心?
Migrated from Lutece 1642 老当益壮, 宁移白首之心?
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
请构造一个01串,使其满足以下条件:
- 环状(即首尾相连)
- 每一位取值为0或1
- 长度是
- 对于每个(个)位置,从其开始沿逆时针方向的连续的n位01串(包括自己)构成的数均不相同,即0到中的数各出现一次
Input
输入一个整数
Output
输出任一一个长度为且满足题意的01串(顺逆时针均可),保证输入有解。
Samples
Note
样例的,对于每个位置,沿逆时针方向连续长度为3的01串有:,即为的所有数字
Resources
2017 UESTC Training for Graph Theory