結果

問題 No.516 赤と青の風船
ユーザー ksomemoksomemo
提出日時 2017-09-25 02:01:02
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,368 KB
最終ジャッジ日時 2023-08-09 02:23:43
合計ジャッジ時間 870 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,240 KB
testcase_01 AC 17 ms
8,360 KB
testcase_02 AC 17 ms
8,368 KB
testcase_03 AC 18 ms
8,292 KB
testcase_04 AC 18 ms
8,288 KB
testcase_05 AC 17 ms
8,316 KB
testcase_06 AC 18 ms
8,240 KB
testcase_07 AC 18 ms
8,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict


def main():
    S1 = input()
    S2 = input()
    S3 = input()

    d = defaultdict(int)
    d[S1] += 1
    d[S2] += 1
    d[S3] += 1

    if d["RED"] > d["BLUE"]:
        print("RED")
    else:
        print("BLUE")

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