結果

問題 No.24 数当てゲーム
ユーザー ymgckyoymgckyo
提出日時 2017-11-04 16:03:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 579 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-02 22:43:41
合計ジャッジ時間 988 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

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('123456789')
        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