結果

問題 No.516 赤と青の風船
ユーザー miku39kkmiku39kk
提出日時 2017-07-15 00:42:44
言語 C++11
(gcc 11.4.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 273 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 54,904 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-16 20:55:16
合計ジャッジ時間 852 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main() {
    int count = 0;

    for(int i = 0;i < 3;i++){
    string s;
    cin >> s;    if(s == "RED")count++;
    }
    if(count < 2)cout << "BLUE\n" << endl;
    else cout << "RED\n" << endl;
return 0;
}
0