結果

問題 No.24 数当てゲーム
ユーザー miho-4miho-4
提出日時 2023-06-09 19:11:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 199 bytes
コンパイル時間 1,816 ms
コンパイル使用メモリ 86,772 KB
実行使用メモリ 71,384 KB
最終ジャッジ日時 2023-08-30 11:30:54
合計ジャッジ時間 2,594 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 72 ms
71,380 KB
testcase_02 AC 74 ms
71,384 KB
testcase_03 AC 73 ms
71,100 KB
testcase_04 AC 73 ms
71,252 KB
testcase_05 WA -
testcase_06 AC 73 ms
71,296 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
L=[list(input().split()) for _ in range(n)]
Y,N={str(i) for i in range(1,10)},set()
for i in range(n):
	if L[i][-1]=="YES":
		Y&=set(L[i][:-1])
	else:
		N|=set(L[i][:-2])
print(*(Y-N))
0