結果

問題 No.24 数当てゲーム
ユーザー U SU S
提出日時 2020-01-15 03:14:51
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 405 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 7,868 KB
最終ジャッジ日時 2023-08-28 14:59:51
合計ジャッジ時間 946 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 14 ms
7,780 KB
testcase_02 AC 14 ms
7,740 KB
testcase_03 AC 14 ms
7,868 KB
testcase_04 AC 14 ms
7,744 KB
testcase_05 AC 14 ms
7,804 KB
testcase_06 AC 15 ms
7,776 KB
testcase_07 AC 14 ms
7,780 KB
testcase_08 AC 14 ms
7,792 KB
testcase_09 AC 15 ms
7,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
num_flag = [True] * 10
for i in range(n):
    a = list(map(str,input().split()))
    if a[4] == "NO":
        for j in range(4):
            num_flag[int(a[j])] = False
    else:
        ten = [j for j in range(10)]
        for j in range(4):
            ten.remove(int(a[j]))
        for j in ten:
            num_flag[j] = False
for i in range(10):
    if num_flag[i]:
        print(i)
0