結果

問題 No.24 数当てゲーム
ユーザー HagianHagian
提出日時 2021-06-01 06:46:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 381 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-26 09:44:00
合計ジャッジ時間 1,052 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import copy
N = int(input())
sl, YN = [],[]
sample = set(range(10))
for v in range(N):
    if v != 0:
        num_old = copy.deepcopy(num)
    l = list(input().split())
    nl = [int(i) for i in l[0:4]]
    num = set(nl)
    if l[4] == "NO":
        sample = sample - num
    elif v != 0:
        sample = num_old & num
    else:
        pass
sample = list(sample)
print(sample[0])
0