3153: 查找 vector 中是否存在指定字符串

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:4

Description

先输入 n 个字符串存入 vector,再输入一个待查找的字符串,若存在输出 YES,否则 NO。

Input

n → n 个字符串 → 要查找的字符串

Output

YES 或 NO

Sample Input Copy

3
apple
banana
pear
banana

Sample Output Copy

YES