結果

問題 No.24 数当てゲーム
ユーザー zenito9970zenito9970
提出日時 2016-11-03 16:40:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 521 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 10,860 KB
実行使用メモリ 7,888 KB
最終ジャッジ日時 2023-08-16 13:21:04
合計ジャッジ時間 1,101 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def winput():
    inp = input().split()
    if len(inp) == 1:
        return int(inp[0])
    return inp

ist = [True]*10
n = winput()
for i in range(n):
    a, b, c, d, r = winput()
    a, b, c, d = list(map(int, [a, b, c, d]))
    a, b, c, d = a-1, b-1, c-1, d-1
    if r == "NO":
        for i in [a, b, c, d]:
            ist[i] = False
    else:
        for i in range(10):
            if not (i in [a, b, c, d]):
                ist[i] = False

for i, b in enumerate(ist):
    if b:
        print(i+1)
        break
0