// No.516 赤と青の風船 // https://yukicoder.me/problems/no/516 // #include #include #include using namespace std; string solve(vector &balloons); int main() { const int num_of_balloons = 3; vector balloons(num_of_balloons); for (auto i = 0; i < num_of_balloons; i++) { cin >> balloons[i]; } string ans = solve(balloons); cout << ans << endl; } string solve(vector &balloons) { int red = 0; int blue = 0; for (auto b: balloons) { if (b == "RED") red++; else blue++; } return (red > blue? "RED": "BLUE"); }