結果

問題 No.516 赤と青の風船
ユーザー RyutoRyuto
提出日時 2018-03-31 15:39:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 71,460 KB
最終ジャッジ日時 2023-09-08 08:16:16
合計ジャッジ時間 1,488 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,160 KB
testcase_01 AC 72 ms
71,252 KB
testcase_02 AC 73 ms
71,240 KB
testcase_03 AC 75 ms
71,100 KB
testcase_04 AC 72 ms
71,096 KB
testcase_05 AC 72 ms
71,460 KB
testcase_06 AC 72 ms
71,128 KB
testcase_07 AC 73 ms
71,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

def main():
    b = 0
    r = 0
    for i in range(3):
        if input().strip() == 'BLUE':
            b += 1
        else:
            r += 1
    if b > r:
        print('BLUE')
    else:
        print('RED')

if __name__ == '__main__':
    main()
0