結果
問題 | No.516 赤と青の風船 |
ユーザー |
![]() |
提出日時 | 2018-01-11 00:53:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 373 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-23 17:10:17 |
合計ジャッジ時間 | 887 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
ソースコード
# coding: utf-8from enum import Enumclass Color(Enum):RED = 1BLUE = 2def main():d = {Color.BLUE.name:0, Color.RED.name:0}for i in range(3):d[input()] += 1result = Color.RED.nameif d[Color.RED.name] < d[Color.BLUE.name]:result = Color.BLUE.nameprint(result)if __name__=='__main__':main()