Guest User

Untitled

a guest
Mar 18th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # Uses python3
  2. import sys
  3. input = sys.stdin.read()
  4. tokens = input.split()
  5. a = int(tokens[0])
  6. b = int(tokens[1])
  7. print(a + b)
  8.  
  9. # Uses python3
  10. n = int(input())
  11. a = [int(x) for x in input().split()]
  12. product = 0
  13. for i in range(n):
  14. for j in range(i + 1, n):
  15. product = max(product, a[i] * a[j])
  16. print(product)
Add Comment
Please, Sign In to add comment