結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-03-04 16:41:45 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 451 bytes | 
| コンパイル時間 | 78 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-23 13:35:00 | 
| 合計ジャッジ時間 | 908 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 WA * 6 | 
ソースコード
n = int(input())
yes = []
no = []
y_flag = 0
n_flag = 0
for i in range(n):
	a = input().split()
	if a[-1] == 'YES':
		yes.extend(a[:-1])
		y_flag += 1
	else:
		no.extend(a[:-1])
		n_flag += 1
yes = [_ for _ in set(yes) if yes.count(_) > 1]
if y_flag == 0:
	print(''.join([str(i) for i in range(0, 10) if str(i) not in no]))
	exit()
elif n_flag == 0:
	print(''.join(yes))
	exit()
for i in range(len(yes)):
	if yes[i] not in no:
		print(yes[i])
		exit()
            
            
            
        