結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
かぼちゃ
|
| 提出日時 | 2018-03-04 16:16:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 355 bytes |
| コンパイル時間 | 491 ms |
| コンパイル使用メモリ | 61,372 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 23:50:13 |
| 合計ジャッジ時間 | 1,405 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int red = 0,blue = 0;
string s;
for(int i = 0;i < 3;i++){
cin >> s;
if(s == "RED")red++;
else if(s == "BLUE")blue++;
}
if(red > blue)cout << "RED";
else cout << "BLUE";
return 0;
}
かぼちゃ