結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-20 14:39:44 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 133µs | |
| コード長 | 372 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 01:50:55 |
| 合計ジャッジ時間 | 1,276 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
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])