Problem C: 循环计数---连续高温预警

Problem C: 循环计数---连续高温预警

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 364  Solved: 257
[Status] [Submit] [Creator:]

Description

输入最近n天的温度,判断是否出现连续3天及以上温度≥35℃的情况。如果有,输出“yes”
如果没有,输出“no”

Input

输入为两行。
第一行为n,表示天数
第二行为n个温度,每两个数之间用一个空格隔开。

Output

如果存在连续3天及以上≥35℃:

    输出"yes

否则:

    输出"no"

Sample Input Copy

7
32 36 37 38 34 35 36

Sample Output Copy

yes