結果

問題 No.24 数当てゲーム
ユーザー Eki1009Eki1009
提出日時 2020-11-16 21:11:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 422 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 10,768 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-09-30 07:29:41
合計ジャッジ時間 945 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
S = [1]*10
for _ in range(n):
    a, b, c, d, r = input().split()
    a = int(a)
    b = int(b)
    c = int(c)
    d = int(d)
    if r == "YES":
        for i in range(1, 10):
            if i == a or i == b or i == c or i == d:
                continue
            S[i] = 0
    else:
        S[a] = 0
        S[b] = 0
        S[c] = 0
        S[d] = 0
for i in range(1, 10):
    if S[i]:
        print(i)
0