結果

問題 No.24 数当てゲーム
ユーザー R NR N
提出日時 2020-08-04 14:39:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 489 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 10,944 KB
実行使用メモリ 8,640 KB
最終ジャッジ日時 2023-10-12 17:09:44
合計ジャッジ時間 1,032 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 18 ms
8,572 KB
testcase_02 AC 19 ms
8,596 KB
testcase_03 AC 19 ms
8,596 KB
testcase_04 WA -
testcase_05 AC 18 ms
8,628 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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