Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- a = list(map(int, input().split()))
- anew = []
- for i in range(n):
- if a[i] > 0:
- answ.append(i + 1)
- print(len(answ))
- print(*answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement