結果

問題 No.516 赤と青の風船
ユーザー かいかいかいかい
提出日時 2020-12-20 17:26:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 11,796 KB
実行使用メモリ 9,920 KB
最終ジャッジ日時 2023-10-21 10:47:02
合計ジャッジ時間 1,002 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,920 KB
testcase_01 AC 24 ms
9,920 KB
testcase_02 AC 24 ms
9,920 KB
testcase_03 AC 26 ms
9,920 KB
testcase_04 AC 25 ms
9,920 KB
testcase_05 AC 26 ms
9,920 KB
testcase_06 AC 26 ms
9,920 KB
testcase_07 AC 26 ms
9,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S1 = input()
S2 = input()
S3 = input()

answer = {
    'RED': 0,
    'BLUE': 0
}

for S in [S1, S2, S3]:
    if S == 'RED':
        answer['RED'] += 1
    else:
        answer['BLUE'] += 1

if answer['RED'] >= answer['BLUE']:
    print('RED')
else:
    print('BLUE')

0