結果

問題 No.24 数当てゲーム
ユーザー ssmkzkssmkzk
提出日時 2018-06-04 02:31:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 557 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,868 KB
実行使用メモリ 7,888 KB
最終ジャッジ日時 2023-09-12 22:02:13
合計ジャッジ時間 1,279 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,808 KB
testcase_01 AC 17 ms
7,740 KB
testcase_02 AC 16 ms
7,780 KB
testcase_03 AC 16 ms
7,792 KB
testcase_04 AC 17 ms
7,888 KB
testcase_05 AC 16 ms
7,848 KB
testcase_06 AC 16 ms
7,740 KB
testcase_07 AC 16 ms
7,728 KB
testcase_08 AC 16 ms
7,732 KB
testcase_09 AC 16 ms
7,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]

for i in range(N):
    l = list(map(str, input().split()))
    ck = l[4]
    l.pop()
    if ck == "NO":
        for i in range(4):
            try:
                ans.remove(l[i])
            except:
                pass
    else:
        l_ck = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
        for i in range(4):
            l_ck.remove(l[i])
        for li in l_ck:
            try:
                ans.remove(li)
            except:
                pass

print(ans[0])
0