結果

問題 No.24 数当てゲーム
ユーザー reforefo2reforefo2
提出日時 2020-05-03 18:15:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 765 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,808 KB
実行使用メモリ 8,200 KB
最終ジャッジ日時 2023-09-03 22:34:26
合計ジャッジ時間 929 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
List = []
Numset = [0,1,2,3,4,5,6,7,8,9]
Ans = []
for i in range(N):
    List.append(input().split())
for i in range(N):
    if List[i][4] == "NO":
        a = int(List[i][0])
        b = int(List[i][1])
        c = int(List[i][2])
        d = int(List[i][3])
        if a in Numset:
            Numset.remove(a)
        if b in Numset:
            Numset.remove(b)
        if c in Numset:
            Numset.remove(c)
        if d in Numset:
            Numset.remove(d)
    if List[i][4] == "YES":
        for j in range(10):
            if j != int(List[i][0]) and j != int(List[i][1]) and j != int(List[i][2]) and j != int(List[i][3]):
                if j in Numset:
                    Numset.remove(j)
    print(Numset)
print(int(Numset[0]))
0