Words Score

  • + 0 comments
    import re
    
    N = int(input())
    score = 0
    for i in input().split():
        if(len(re.findall(r"[aeiouy]", i)) %2 == 0):
            score += 2
        else:
            score += 1
    
    print(score)