Raslboyy

S

May 21st, 2021
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. n = int(input())
  2.  
  3. a = list(map(int, input().split()))
  4.  
  5. mx = max(a)
  6.  
  7. ans = ''
  8. for i in a:
  9.     if i == mx:
  10.         ans += '1 '
  11.     else:
  12.         ans += '0 '
  13.  
  14. print(ans)
Advertisement
Add Comment
Please, Sign In to add comment