結果
問題 |
No.24 数当てゲーム
|
ユーザー |
|
提出日時 | 2018-03-16 00:55:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 37 ms / 5,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-21 14:04:15 |
合計ジャッジ時間 | 1,226 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
from collections import defaultdict m = defaultdict(set) m["YES"] = set("0123456789") for _ in range(int(input())): a, b, c, d, r = input().split() if r == "YES": m["YES"] &= {a, b, c, d} if r == "NO": m["NO"] |= {a, b, c, d} print((m["YES"] - m["NO"]).pop())