結果

問題 No.516 赤と青の風船
ユーザー Kazu05Kazu05
提出日時 2019-02-20 20:31:58
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 947 bytes
コンパイル時間 799 ms
コンパイル使用メモリ 92,628 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-25 03:14:42
合計ジャッジ時間 1,303 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;

#define REP(i, n) for(int i = 0; i < n;i++)

typedef long long ll;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	/*
	int n, m;
	int a[110];
	cin >> n >> m;
	for (int i = 0; i < n; i++) cin >> a[i];
	for (int i = 0; i < m; i++) {
		for (int j = 0; j < n; j++) {
			if (j % i > (j + 1) % i) swap(a[i], a[i + 1]);
		}
	}
	cout << a[0];
	for (int i = 0; i < n; i++) cout << a[i] << endl;
	*/
	string s[10];
	int r = 0, b = 0;
	REP(i, 3) {
		cin >> s[i];
		if (s[i] == "RED") {
			r++;
		} else {
			b++;
		}
	}
	if (r > b) {
		cout << "RED" << endl;
	} else {
		cout << "BLUE" << endl;
	}
}
0