Submission #4768388
Source Code Expand
num = int(input())
hats = input()
rhat = len([hat for hat in hats if hat == "R"])
bhat = len([hat for hat in hats if hat == "B"])
if rhat > bhat:
print("Yes")
else:
print("No")
Submission Info
| Submission Time | |
|---|---|
| Task | B - Red or Blue |
| User | taruta0811 |
| Language | Python (3.4.3) |
| Score | 200 |
| Code Size | 195 Byte |
| Status | AC |
| Exec Time | 17 ms |
| Memory | 2940 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | sample_01.txt, sample_02.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | AC | 17 ms | 2940 KiB |
| sample_02.txt | AC | 17 ms | 2940 KiB |
| test_01.txt | AC | 17 ms | 2940 KiB |
| test_02.txt | AC | 17 ms | 2940 KiB |
| test_03.txt | AC | 17 ms | 2940 KiB |
| test_04.txt | AC | 17 ms | 2940 KiB |
| test_05.txt | AC | 17 ms | 2940 KiB |
| test_06.txt | AC | 17 ms | 2940 KiB |
| test_07.txt | AC | 17 ms | 2940 KiB |
| test_08.txt | AC | 17 ms | 2940 KiB |
| test_09.txt | AC | 17 ms | 2936 KiB |