Advertisement
nq1s788

Untitled

Jan 29th, 2023
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. n = int(input())
  2. a = list(map(int, input().split()))
  3. anew = []
  4. for i in range(n):
  5. if a[i] > 0:
  6. answ.append(i + 1)
  7. print(len(answ))
  8. print(*answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement