Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # 757A : GOTTA CATCH EM' ALL!
  2. # Prerequisite : Implementation
  3. string=raw_input()
  4. list={}
  5. list['B']=0
  6. list['u']=0
  7. list['l']=0
  8. list['b']=0
  9. list['a']=0
  10. list['s']=0
  11. list['r']=0
  12. alphabets=['B','u','l','b','a','s','r']
  13. double=['u','a']
  14. for c in string:
  15. if c in alphabets:
  16. list[c]+=1
  17. for c in double:list[c]//=2
  18. print min(list.values())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement