結果

問題 No.24 数当てゲーム
ユーザー 阿部祥紀阿部祥紀
提出日時 2024-04-08 16:55:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 375 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2024-04-08 16:55:57
合計ジャッジ時間 1,025 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def main():
    turn=int(input())
    ans=([i for i in range(10)])
    for i in range(turn):
        taro=list(map(str,input().split()))
        if taro[4] == "NO":
            ans=[i for i in ans if i != int(taro[0]) and i != int(taro[1]) and i != int(taro[2]) and i != int(taro[3])]
        else:
            ans=ans
    print(ans[0])

if __name__ == "__main__":
    main()
0