結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-08-03 17:12:21 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 740 bytes | 
| コンパイル時間 | 99 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-09-13 09:57:12 | 
| 合計ジャッジ時間 | 978 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 2 WA * 8 | 
ソースコード
# 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)
            
            
            
        