Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 8th, 2020 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. a = [0] * n
  3. for i in range(n):
  4.     a[i] = int(input())
  5. Max = a[0]
  6. P = -1
  7. for i in range(8, n):
  8.     if a[i - 8] > Max:
  9.         Max = a[i - 8]
  10.     if Max * a[i] > P:
  11.         P = Max * a[i]
  12. print(P)
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