dxnge

43

Dec 4th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. f = open('24-s1.txt')
  2. cnt = 0
  3. while a := f.readline():
  4.     if a.count('S') == a.count('X'):
  5.         cnt += 1
  6. print(cnt)
  7.  
Advertisement
Add Comment
Please, Sign In to add comment