結果
問題 | No.24 数当てゲーム |
ユーザー | konabe |
提出日時 | 2018-04-20 14:39:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 193 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-27 05:04:39 |
合計ジャッジ時間 | 901 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
N = int(input()) Args = [input().split() for i in range(N)] candidate = [ str(i) for i in range(10)] for arg in Args: if arg[4] == 'YES': candidate = list(set(arg[:-1]).intersection(set(candidate))) if arg[4] == 'NO': candidate = list(set(candidate).difference(set(arg[:-1]))) if len(candidate) == 1: break print(candidate[0])