結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
hiyokko2
|
| 提出日時 | 2017-05-28 21:23:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 641 bytes |
| コンパイル時間 | 707 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 15:15:59 |
| 合計ジャッジ時間 | 1,093 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
ソースコード
//#define LOCAL
#include <fstream>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <cstring>
#define int long long
//typedef long long ll;
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
int red, blue;
signed main()
{
#ifdef LOCAL
ifstream in("input.txt");
cin.rdbuf(in.rdbuf());
#endif
string in;
rep(i,3) {
cin >> in;
if (in == "RED") {
red++;
} else {
blue++;
}
}
if (red > blue) {
cout << "RED" << endl;
} else {
cout << "BLUE" << endl;
}
}
hiyokko2