結果
問題 | No.516 赤と青の風船 |
ユーザー |
|
提出日時 | 2017-07-12 21:14:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 561 ms |
コンパイル使用メモリ | 55,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 16:46:32 |
合計ジャッジ時間 | 1,048 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
ソースコード
#include <iostream>#define rep(i,n) for(int i=0;i<n;++i)using namespace std;int main(void){string a;int blue=0,red=0;rep(i,3){cin >> a;if (a=="RED")red++;elseblue++;}cout << ((red>blue)?"RED":"BLUE") << endl;}