結果

問題 No.24 数当てゲーム
ユーザー TomoyarnTomoyarn
提出日時 2023-08-11 10:58:43
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 81,976 KB
実行使用メモリ 54,124 KB
最終ジャッジ日時 2024-04-29 03:28:48
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,968 KB
testcase_01 AC 36 ms
52,096 KB
testcase_02 AC 35 ms
51,712 KB
testcase_03 AC 35 ms
51,712 KB
testcase_04 AC 35 ms
52,096 KB
testcase_05 WA -
testcase_06 AC 33 ms
51,584 KB
testcase_07 AC 35 ms
51,712 KB
testcase_08 AC 39 ms
51,968 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = set(i for i in range(1, 10))
a, b, c, d, x = list(input().split())
a, b, c, d = map(int, [a, b, c, d])
if x == "YES":
    ans = {a, b, c, d}
else:
    ans -= {a, b, c, d}


for _ in range(N - 1):
    a, b, c, d, x = list(input().split())
    a, b, c, d = map(int, [a, b, c, d])
    if x == "YES":
        ans &= {a, b, c, d}
    else:
        ans -= {a, b, c, d}

print(*ans)
0