結果

問題 No.24 数当てゲーム
ユーザー miho-4miho-4
提出日時 2023-06-09 19:12:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 197 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 71,420 KB
最終ジャッジ日時 2023-08-30 11:31:49
合計ジャッジ時間 2,079 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,212 KB
testcase_01 AC 72 ms
71,404 KB
testcase_02 AC 73 ms
71,264 KB
testcase_03 AC 78 ms
71,228 KB
testcase_04 AC 73 ms
71,120 KB
testcase_05 AC 73 ms
71,144 KB
testcase_06 AC 73 ms
71,420 KB
testcase_07 AC 73 ms
71,376 KB
testcase_08 AC 73 ms
71,084 KB
testcase_09 AC 73 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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