提出 #4764519
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using p = pair<ll, ll>;
constexpr ll INF = 1LL << 62;
int main(void) {
ll N;
string S;
cin >> N;
cin >> S;
ll red = 0, blue = 0;
for (auto s : S) {
if (s == 'R') {
red++;
} else {
blue++;
}
}
cout << (red > blue ? "Yes" : "No") << endl;
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Red or Blue |
| ユーザ | char_c3 |
| 言語 | C++14 (GCC 5.4.1) |
| 得点 | 200 |
| コード長 | 390 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 256 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| sample_01.txt | AC | 1 ms | 256 KiB |
| sample_02.txt | AC | 1 ms | 256 KiB |
| test_01.txt | AC | 1 ms | 256 KiB |
| test_02.txt | AC | 1 ms | 256 KiB |
| test_03.txt | AC | 1 ms | 256 KiB |
| test_04.txt | AC | 1 ms | 256 KiB |
| test_05.txt | AC | 1 ms | 256 KiB |
| test_06.txt | AC | 1 ms | 256 KiB |
| test_07.txt | AC | 1 ms | 256 KiB |
| test_08.txt | AC | 1 ms | 256 KiB |
| test_09.txt | AC | 1 ms | 256 KiB |