Words Score

  • + 0 comments
    import re,sys
    pat=re.compile(r'[aeiouy]')
    l=sys.stdin.read().splitlines()[1].split()
    total=0
    for word in l:
        total+=1 if len(re.findall(pat,word))&1 else 2
    print(total)