← Back to List

23175번: Histogram Sequence 3 ↗

Solutions

Python 3
104 B | 104 chars
n = int(input())
l = [*map(int,input().split())]

i = 0
while i < n:
  print(l[i], end=" ")
  i += l[i]