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