結果
問題 | No.516 赤と青の風船 |
ユーザー |
![]() |
提出日時 | 2020-11-23 18:55:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 2,184 ms |
コンパイル使用メモリ | 204,208 KB |
最終ジャッジ日時 | 2025-01-16 05:08:18 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 6 |
ソースコード
#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; }