Rick-Roll Virus
InterviewTime limit2sMemory limit1024 MB
Given a line of N people with infected ones marked R, decide whether M cures can stop the virus that spreads K cells per day.
Problem
In 2033, while a vote to pick the top meme in Harunaland ends with Rick Astley as the winner, the Rick-Roll Virus spreads through Harunaland. Anyone infected hums Never gonna give you up without fail, so haru_202 wants to stop the virus.
people live in a straight line, each one next to the next. An infected person at passes the virus after 1 day to the people at , , , , .
After 1 day, can haru_202 cure every infected person with doses of the cure? Each person can receive only one dose.
Input
The first line contains integers , , and separated by spaces.
The second line contains a string of length that shows the infection status of each person. is the status of the person at as follows.
.: not infectedR: infected
Output
After 1 day, print Yes if haru_202 can cure every person infected by the Rick-Roll Virus with doses of the cure, otherwise print No.