結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-11-22 22:42:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 5,000 ms |
| コード長 | 341 bytes |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 82,364 KB |
| 実行使用メモリ | 53,668 KB |
| 最終ジャッジ日時 | 2024-07-23 16:47:03 |
| 合計ジャッジ時間 | 1,333 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
# coding: utf-8
# Your code here!
import sys
readline = sys.stdin.readline
read = sys.stdin.read
n = int(readline())
nset = set()
yset = set(range(10))
for _ in range(n):
*r, = readline().split()
s = set(map(int,r[:4]))
if r[-1]=="NO":
nset |= s
else:
yset &= s
for i in yset:
if i not in nset: print(i)
convexineq