Advertisement
BanyRule

Untitled

Sep 30th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. n = int(input())
  2. s = input()
  3.  
  4. a = s.split('W')
  5.  
  6. print(len(a) - a.count(''))
  7. for i in a:
  8.     if i != '':
  9.         print(len(i), end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement