結果

問題 No.24 数当てゲーム
ユーザー MaboyMaboy
提出日時 2017-05-01 19:21:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-10-12 02:09:13
合計ジャッジ時間 1,236 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())
l=[]
s1=set()
s2=set()
for i in range(n):
    l+=[input().split()]
    if l[i][-1]=="NO":
        s1|=set(l[i])
    else:
        if len(s2)==0:
            s2=set(l[i])
        else:
            s2&=set(l[i])
if len(s2)==2:
    s2.remove("YES")

for i in range(10):
    if (str(i) not in s1) and (str(i) in s2):
        print(i)
        break
0