結果

問題 No.24 数当てゲーム
ユーザー sikama
提出日時 2017-03-07 17:35:27
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 360 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 17:11:11
合計ジャッジ時間 1,038 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())

Ans=set(xrange(10))
for i in xrange(1,N+1):
    abcdr=raw_input().split()
    A=int(abcdr[0])
    B=int(abcdr[1])
    C=int(abcdr[2])
    D=int(abcdr[3])
    if abcdr[4]=='YES':
        Ans=Ans.intersection(set([A,B,C,D]))
    else:
        Ans.discard(A)
        Ans.discard(B)
        Ans.discard(C)
        Ans.discard(D)
print Ans.pop()
0