fork download
  1. for _ in range(13):
  2. a=b=0
  3. exec'a,b=[a-1,b+1,0][a<1:][:2];'*input()
  4. print[1]*b+[0]*a
Success #stdin #stdout 0.05s 9120KB
stdin
0
1
2
3
4
5
6
7
8
9
10
20
1000
stdout
[]
[0]
[1]
[0, 0]
[1, 0]
[1, 1]
[0, 0, 0]
[1, 0, 0]
[1, 1, 0]
[1, 1, 1]
[0, 0, 0, 0]
[1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]