結果

問題 No.24 数当てゲーム
ユーザー R N
提出日時 2020-08-04 14:39:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 489 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-14 15:44:59
合計ジャッジ時間 1,272 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 5 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

import collections

n = int(input())

yes_num = []
no_num = []
taro_list = []
for i in range(n):
    taro_list.append(input().split())

for j in range(n):
    for k in range(4):
        if taro_list[j][4] == 'NO':
            no_num.append(taro_list[j][k])
        else:
            yes_num.append(taro_list[j][k])

for l in yes_num:
    if l in no_num:
        yes_num.remove(l)
    else:
        continue

ans = collections.Counter(yes_num)
print(ans.most_common()[0][0])
0