結果
問題 | No.24 数当てゲーム |
ユーザー | zenito9970 |
提出日時 | 2016-11-03 16:45:24 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 16 ms / 5,000 ms |
コード長 | 483 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 10,804 KB |
実行使用メモリ | 7,880 KB |
最終ジャッジ日時 | 2023-08-16 13:21:05 |
合計ジャッジ時間 | 947 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,800 KB |
testcase_01 | AC | 15 ms
7,880 KB |
testcase_02 | AC | 16 ms
7,760 KB |
testcase_03 | AC | 16 ms
7,776 KB |
testcase_04 | AC | 16 ms
7,872 KB |
testcase_05 | AC | 15 ms
7,836 KB |
testcase_06 | AC | 16 ms
7,848 KB |
testcase_07 | AC | 15 ms
7,756 KB |
testcase_08 | AC | 15 ms
7,776 KB |
testcase_09 | AC | 16 ms
7,836 KB |
ソースコード
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])) 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) break