結果

問題 No.24 数当てゲーム
ユーザー もりをもりを
提出日時 2020-04-25 23:20:06
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 382 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,884 KB
実行使用メモリ 8,292 KB
最終ジャッジ日時 2023-08-07 20:36:12
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,172 KB
testcase_01 AC 15 ms
8,240 KB
testcase_02 AC 16 ms
8,124 KB
testcase_03 AC 16 ms
8,292 KB
testcase_04 AC 15 ms
8,236 KB
testcase_05 AC 15 ms
8,172 KB
testcase_06 AC 15 ms
8,176 KB
testcase_07 AC 15 ms
8,144 KB
testcase_08 AC 15 ms
8,280 KB
testcase_09 AC 15 ms
8,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = []
for _ in range(n):
    a,b,c,d,e = input().split()
    a,b,c,d = map(int, [a, b, c, d])
    l.append([a, b, c, d, e])
for i in range(10):
    ok = True
    for a,b,c,d,e in l:
        if e == 'NO' and i in (a, b, c, d):
            ok = False
        if e == 'YES' and i not in (a, b, c, d):
            ok = False
    if ok:
        print(i)
        exit(0)
0