結果

問題 No.24 数当てゲーム
ユーザー pypypymipypypymi
提出日時 2022-02-17 18:21:09
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 276 bytes
コンパイル時間 875 ms
コンパイル使用メモリ 86,816 KB
実行使用メモリ 78,864 KB
最終ジャッジ日時 2023-09-11 17:47:38
合計ジャッジ時間 2,138 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,128 KB
testcase_01 AC 73 ms
70,904 KB
testcase_02 AC 72 ms
71,196 KB
testcase_03 AC 71 ms
71,172 KB
testcase_04 AC 72 ms
71,196 KB
testcase_05 RE -
testcase_06 AC 72 ms
71,004 KB
testcase_07 AC 74 ms
71,304 KB
testcase_08 AC 73 ms
71,368 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
cand = list(range(1,10))
for i in range(n):
    a,b,c,d,r = input().split()
    a=int(a);b=int(b);c=int(c);d=int(d)
    if r=="YES":
        cand = list(set(cand) & set([a,b,c,d]))
    else:
        cand = list(set(cand)-set([a,b,c,d]))
print(cand[0])        
0