Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A = input().split()
- Max = 0
- for i in range(len(A)):
- Sum = 0
- count = 0
- for j in range(i, len(A)):
- Sum += int(A[j])
- count += 1
- if Sum % 89 == 0:
- Max = max(Max, Sum)
- print(Max, count)
Advertisement
Add Comment
Please, Sign In to add comment