結果

問題 No.24 数当てゲーム
ユーザー Makorominiris
提出日時 2016-05-12 20:41:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 210 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-05 14:05:32
合計ジャッジ時間 924 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [list(input().split()) for i in range(n)]
w = [0] * 10
for j in range(n):
    idx = 1 if a[j].pop() == "YES" else -1
    for elem in a[j]:
        w[int(elem)] += idx
print(w.index(max(w)))
0