結果

問題 No.24 数当てゲーム
ユーザー kanoekakihito
提出日時 2018-09-22 14:00:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 343 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-18 08:55:28
合計ジャッジ時間 811 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n= int(input())
response = {input() for line in range(n)}
NO = {i for i in response if i[-2:] == "NO"}
y = tuple(map(lambda s: "".join([c for c in s if c.isdigit()]), response - NO))
YES = set("".join(map(lambda i: i if all([(i in r) for r in y]) else "", y[0])))
print("".join((YES if len(YES) > 0 else set("0123456789")) - set("".join(NO))))
0