#P1607. Verse Pattern

Verse Pattern

题目描述

你现在有 nn 句话,还有他们分别对应的应有的元音个数,现在要你判断每句话是否都含有正确的元音(a,e,i,o,u,ya,e,i,o,u,y)个数。

输入格式

第一行一个整数 nnn100n\le 100

第二行 nn 个整数 pip_i,表示第 ii 句话应该要包含的元音数量,0pi1000\le p_i\le 100

接下来 nn 行,每行一句话,可能包含空格,长度不超过 100100

输出格式

如果每句话都包含有正确的元音数量,则输出 YES,否则输出 NO

3
2 2 3
intel
code
ch allenge
YES
4
1 2 3 1
a
bcdefghi
jklmnopqrstu
vwxyz
NO
4
13 11 15 15
to be or not to be that is the question
whether tis nobler in the mind to suffer
the slings and arrows of outrageous fortune
or to take arms against a sea of troubles
YES