fork(1) download
  1. import re
  2. for i in range(7):
  3. print(len(re.findall("[cprt]h|dd|ff|ng|ll|.",input())))
Success #stdin #stdout 0.01s 9992KB
stdin
llandudno
llanelli
rhyl
llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
tŷr
cymru
glyndŵr
stdout
8
6
3
50
3
5
7