結果

問題 No.24 数当てゲーム
ユーザー ymgckyoymgckyo
提出日時 2017-11-04 16:04:02
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 581 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-08-15 11:16:26
合計ジャッジ時間 902 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
org_list = list('0123456789')

for i in range(n):
    inputed_list = list(input().split())
    if inputed_list[-1] == 'NO':
        for i in range(len(inputed_list) - 1):
            if inputed_list[i] in org_list:
                org_list.remove(inputed_list[i])
    else:
        tmp_list = list('0123456789')
        for i in range(len(inputed_list) - 1):
            if inputed_list[i] in tmp_list:
                tmp_list.remove(inputed_list[i])

        for e in tmp_list:
            if e in org_list:
                org_list.remove(e)

print(org_list[0])
0