Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('17.txt')
- A = list(map(file.readlines()))
- count = 0
- Max = -100000000
- for i in range(len(A) - 1):
- if A[i] + A[i + 1] >= 100 and (A[i] < 0 or A[i + 1] <0):
- count += 1
- Max = max(Max, A[i] * A[i + 1])
- print(count, Max)
Advertisement
Add Comment
Please, Sign In to add comment