結果
問題 | No.516 赤と青の風船 |
ユーザー |
![]() |
提出日時 | 2017-07-15 00:42:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 515 ms |
コンパイル使用メモリ | 54,612 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 00:25:35 |
合計ジャッジ時間 | 1,095 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 6 |
ソースコード
#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;}