結果
問題 | No.24 数当てゲーム |
ユーザー |
|
提出日時 | 2016-11-03 16:45:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 483 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-25 02:26:15 |
合計ジャッジ時間 | 924 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
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