OtsoSilver

Untitled

Apr 20th, 2020
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. k = 2147483647
  2. for m in a:
  3.     if (m % 4 == 0) and m % 4 < k:
  4.         k = m
  5. for i in range(0, n):
  6.     if a[i] % 4 == 0:
  7.         a[i] = k
  8.     print(a[i])
Advertisement
Add Comment
Please, Sign In to add comment