Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- k = 0
- with open('N9.txt') as f:
- lines = f.readlines()
- for line in lines:
- a = [int(i) for i in line.split()]
- if len(a) - len(set(a)) < 1:
- continue
- S = 0
- for i in a:
- if a.count(i) == 1:
- S += i
- if S % 2 == 1:
- k += 1
- #print(a)
- print(k)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement