No.516 Red and Blue Balloons
レベル :
/ AI推定難易度 : 75
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 647
作問者 :
nmnmnmnmnmnmnm
/ テスター :
mai
タグ : / 解いたユーザー数 647
作問者 :
nmnmnmnmnmnmnm
/ テスター :
問題文最終更新日: 2026-06-25 14:12:33
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 164
(順位表)
の他の問題:
Problem Statement
There are 3 balloons. Each balloon is either red or blue.
Determine which is greater among the 3 balloons: the number of red balloons or the number of blue balloons.
Input
$S_1$ $S_2$ $S_3$
$S_i$ represents the color of the $i$-th balloon.
$S_i$ is a string, either "RED" or "BLUE".
"RED" represents a red balloon, and "BLUE" represents a blue balloon.
Output
Print "RED" if there are more red balloons, or "BLUE" if there are more blue balloons, on a single line.
Print a newline at the end.
Sample
Sample 1
Input
RED RED BLUE
Output
RED
There are 2 red balloons and 1 blue balloon.
The red balloons are greater in number.
Sample 2
Input
BLUE BLUE BLUE
Output
BLUE
There are only blue balloons. The blue balloons are greater in number.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。