結果

問題 No.516 赤と青の風船
ユーザー rtomprtomp
提出日時 2017-05-30 15:32:58
言語 C++11
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 271 bytes
コンパイル時間 1,400 ms
コンパイル使用メモリ 160,196 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 18:02:42
合計ジャッジ時間 1,904 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 WA -
testcase_05 AC 2 ms
4,348 KB
testcase_06 WA -
testcase_07 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
const int MOD = 1e9+7,Pun = 1e6;

int main()
{
    char color[4];
    int r = 0,b = 0;
	while(cin>>color)
	{
    	if(color[0] == 'R') r++;
    	else b++;
	}
	
	cout << (r > b ? "RED" : "BLUE") << endl;
}
0