結果

問題 No.516 赤と青の風船
ユーザー chacoder1
提出日時 2020-11-23 18:56:25
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 7,313 ms
コンパイル使用メモリ 202,292 KB
最終ジャッジ日時 2025-01-16 05:08:29
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  map<string,int>mp;
  string s;
  for(int i=0;i<3;i++){
    cin>>s;
    mp[s]++;
  }
  if(mp["BLUE"]>=2){
    cout<<"BLUE"<<endl;
    return 0;
  }
  else{
    cout<<"RED"<<endl;
  }
  return 0;
}
  
0