Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open("10A.txt")
- A = list(map(int, file.readlines()))
- Max = 0
- for i in range(len(A)):
- for j in range(i + 1, len(A)):
- if (A[i] + A[j]) % 2 == 1:
- Max = max(Max, A[i] + A[j])
- print(Max)
Advertisement
Add Comment
Please, Sign In to add comment