結果

問題 No.24 数当てゲーム
ユーザー t
提出日時 2020-06-05 02:00:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 308 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,372 KB
最終ジャッジ日時 2024-12-14 02:00:05
合計ジャッジ時間 7,014 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

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

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] += 1
    if(A[4] == 'NO'):
        for j in range(4):
            cnt[int(A[j])-1] -= 1

print(np.argmax(cnt)+1)
0