結果
| 問題 | No.516 赤と青の風船 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-28 21:22:49 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 878 ms |
| コンパイル使用メモリ | 174,996 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-09 20:30:04 |
| 合計ジャッジ時間 | 1,643 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define rep(i,b) FOR(i,0,b)
#define INF 1e9
using ll = long long;
const ll mod = LLONG_MAX;
typedef pair<int,int> P;
int main(){
int r=0,b=0;
string s;
rep(i,3){
cin>>s;
if(s=="RED")r++;
else b++;
}
if(r>b)cout<<"RED"<<endl;
else cout<<"BLUE"<<endl;
}