結果

問題 No.24 数当てゲーム
ユーザー t
提出日時 2020-06-05 02:02:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 535 ms / 5,000 ms
コード長 303 bytes
コンパイル時間 550 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 43,708 KB
最終ジャッジ日時 2024-12-14 02:06:16
合計ジャッジ時間 8,296 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N = int(input())
cnt = np.zeros(10)

for i in range(N):
    A = [str(i) for i in input().split()]
    if(A[4] == 'YES'):
        for j in range(4):
            cnt[int(A[j])] += 1
    if(A[4] == 'NO'):
        for j in range(4):
            cnt[int(A[j])] -= 1

print(np.argmax(cnt))
0