結果
| 問題 | 
                            No.516 赤と青の風船
                             | 
                    
| コンテスト | |
| ユーザー | 
                             mban
                         | 
                    
| 提出日時 | 2017-05-29 10:28:31 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 653 bytes | 
| コンパイル時間 | 905 ms | 
| コンパイル使用メモリ | 99,364 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-21 18:02:03 | 
| 合計ジャッジ時間 | 1,389 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 6 | 
ソースコード
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <unordered_map>
#include <vector>
using namespace std;
int main() {
    int Red = 0;
    int Blue = 0;
    for (int i = 0; i < 3; i++) {
        string s;
        cin >> s;
        if (s == "RED") {
            Red++;
        } else if (s == "BLUE") {
            Blue++;
        }
    }
    cout << (Red > Blue ? "RED" : "BLUE") << endl;
}
            
            
            
        
            
mban