fork download
  1. def piano(notes, n):
  2. sol = 0
  3. print sol
  4.  
  5. belegung = []
  6. for i in range(0,n):
  7. belegung.append(0)
  8. print " ".join(map(lambda x: str(x+1),belegung))
  9.  
  10. n = int(raw_input())
  11.  
  12. notes = map(lambda x: int(x),raw_input().strip().split(' '))
  13.  
  14. piano(notes,n)
Success #stdin #stdout 0.01s 7900KB
stdin
13
7 5 5 6 4 4 3 4 5 6 7 7 7
stdout
0
1 1 1 1 1 1 1 1 1 1 1 1 1