Red or Blue

AtCoder
IDexawizards2019_b
Time2000ms
Memory256MB
Difficulty
There are $N$ people numbered $1$ to $N$. Each person wears a red hat or a blue hat. You are given a string $s$ representing the colors of the people. Person $i$ wears a red hat if $s_i$ is `R`, and a blue hat if $s_i$ is `B`. Determine if there are more people wearing a red hat than people wearing a blue hat. ## Constraints * $1 \leq N \leq 100$ * $|s| = N$ * $s_i$ is `R` or `B`. ## Input Input is given from Standard Input in the following format: $N$ $s$ [samples]
Samples
Input #1
4
RRBR
Output #1
Yes

*   There are three people wearing a red hat, and one person wearing a blue hat.
*   Since there are more people wearing a red hat than people wearing a blue hat, the answer is `Yes`.
Input #2
4
BRBR
Output #2
No

*   There are two people wearing a red hat, and two people wearing a blue hat.
*   Since there are as many people wearing a red hat as people wearing a blue hat, the answer is `No`.
API Response (JSON)
{
  "problem": {
    "name": "Red or Blue",
    "description": {
      "content": "There are $N$ people numbered $1$ to $N$. Each person wears a red hat or a blue hat. You are given a string $s$ representing the colors of the people. Person $i$ wears a red hat if $s_i$ is `R`, and a",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "exawizards2019_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There are $N$ people numbered $1$ to $N$. Each person wears a red hat or a blue hat.\nYou are given a string $s$ representing the colors of the people. Person $i$ wears a red hat if $s_i$ is `R`, and a...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments