結果

問題 No.516 赤と青の風船
ユーザー daku9640daku9640
提出日時 2018-03-19 23:19:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 10,496 KB
実行使用メモリ 8,484 KB
最終ジャッジ日時 2023-09-02 13:16:14
合計ジャッジ時間 982 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,300 KB
testcase_01 AC 19 ms
8,484 KB
testcase_02 AC 19 ms
8,432 KB
testcase_03 AC 19 ms
8,288 KB
testcase_04 AC 18 ms
8,216 KB
testcase_05 AC 18 ms
8,312 KB
testcase_06 AC 20 ms
8,380 KB
testcase_07 AC 18 ms
8,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
m = defaultdict(int)
for _ in range(3):
    m[input()] += 1
print(max(m.items(), key=lambda x:x[1])[0])
0