結果

問題 No.516 赤と青の風船
ユーザー ondy_candyondy_candy
提出日時 2018-01-11 00:53:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 8,820 KB
最終ジャッジ日時 2023-08-25 10:44:28
合計ジャッジ時間 1,029 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
8,820 KB
testcase_01 AC 23 ms
8,680 KB
testcase_02 AC 24 ms
8,660 KB
testcase_03 AC 24 ms
8,640 KB
testcase_04 AC 23 ms
8,664 KB
testcase_05 AC 22 ms
8,816 KB
testcase_06 AC 23 ms
8,660 KB
testcase_07 AC 23 ms
8,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
from enum import Enum

class Color(Enum):
    RED = 1
    BLUE = 2
    
def main():
    
    d = {Color.BLUE.name:0, Color.RED.name:0}
    
    for i in range(3):
        d[input()] += 1

    result = Color.RED.name

    if d[Color.RED.name] < d[Color.BLUE.name]:
        result = Color.BLUE.name
    
    print(result)

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