結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-20 14:39:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 5,000 ms |
| コード長 | 372 bytes |
| 記録 | |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 20,592 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-03-14 11:44:23 |
| 合計ジャッジ時間 | 2,032 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])