結果

問題 No.24 数当てゲーム
ユーザー R NR N
提出日時 2020-08-03 17:12:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 740 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,924 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-10-11 11:11:10
合計ジャッジ時間 859 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# coding:utf-8

n = int(input())
yes_list = []
no_list = [str(i) for i in range(10)]
taro_list = []

for i in range(n):
    taro_list.append(input().split())

for k in range(0,n):
    if taro_list[k][4] == 'YES':
        for l in taro_list[k][0:4]:
            yes_list.append(l)
    elif taro_list[k][4] == 'NO':
        for l in range(len(no_list)):
            if no_list[l] in taro_list[k][0:4]:
                    no_list[l] = '-'
            else:
                continue

if yes_list != []:
    for m in yes_list:
        if yes_list.count(str(m)) > 1:
            print(m)
            break
        else:
            continue
else:
    for m in no_list:
        if m == '-':
            continue
        else:
            print(m)
0