Pro.ID22143 TitleDe Bruijn code Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22143 AC4 Submit4 Ratio100.00% 时间&空间限制描述De Bruijn code is a binary code. lt constitutes of 2k binary bits forming a circle. It has 2k binary sequences with length k and different starting positions. And each binary sequence with length k is different from any other one. Give you value of k, find a De Bruijn code. For example Figure 1 shows a De Bruijn code with k = 4. Figure 1 De Bruijn code with k = 4 输入A line containing a integer k which is between 1 and 20, inclusive. Input is terminated by EOF. 输出Description De Bruijn code is a binary code. lt constitutes of 2k binary bits forming a circle. It has 2k binary sequences with length k and different starting positions. And each binary sequence with length k is different from any other one. Give you value of k, find a De Bruijn code. For example Figure 1 shows a De Bruijn code with k = 4. Figure 1 De Bruijn code with k = 4 Input A line containing a integer k which is between 1 and 20, inclusive. Input is terminated by EOF. Output A string representing the De Bruijn code. Sample Input 1 Sample Output 01 Source 样例输入1 样例输出01 作者 |