Advertisement
juxtapositions

Untitled

Dec 23rd, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. f = open('17-199.txt')
  2. s = f.readlines()
  3. a = []
  4. k=0
  5. m=0
  6. for i in range(len(a)-2):
  7.     while a[i] and a[i+2]:
  8.         if a[i+1]>0 and a[i+1]%2!=0 and len(a[i+1])==3:
  9.             k+=1
  10.             m=max(m,a[i]+a[i+1]+a[i+2])
  11. print(k, m)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement