#A. A - Weather Forecast

    传统题 1000ms 256MiB

A - Weather Forecast

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Weather Forecast

Score : $100$ points

Problem Statement

You are given a string $S$, which represents a weather forecast for the seven days starting tomorrow.
The $i$-th of those seven days is forecast to be sunny if the $i$-th character of $S$ is o, and rainy if that character is x.

Tell us whether the $N$-th day is forecast to be sunny.

Constraints

  • $N$ is an integer between $1$ and $7$ (inclusive).
  • $S$ is a string of length $7$ consisting of o and x.

Input

Input is given from Standard Input in the following format:

NN

SS

Output

Print Yes if the $N$-th of the seven days starting tomorrow is forecast to be sunny, and No if that day is forecast to be rainy.


4
oooxoox
No

The forecast for each of the seven days starting tomorrow is as follows: sunny, sunny, sunny, rainy, sunny, sunny, rainy.
In particular, the fourth day is forecast to be rainy.


7
ooooooo
Yes

2025寒假ATC码力训练营第四次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-1-21 13:00
结束于
2025-1-21 14:30
持续时间
1.5 小时
主持人
参赛人数
6