daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. N = 8
  2. a = []
  3. for i in range(N):
  4.     a.append(int(input()))
  5. k = 10001
  6. for i in range(N):
  7.     if a[i]%2 == 0 and a[i] < k:
  8.         k = a[i]
  9.         for i in range(N):
  10.             if a[i] % 5 == 0:
  11.                 a[i]= a[i] - k
  12. for i in range(N):
  13.     print(a[N-1-i])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top