結果

問題 No.24 数当てゲーム
ユーザー first_vilfirst_vil
提出日時 2020-07-31 10:55:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 322 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 7,880 KB
最終ジャッジ日時 2023-09-20 02:51:38
合計ジャッジ時間 1,043 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,784 KB
testcase_01 AC 16 ms
7,768 KB
testcase_02 AC 16 ms
7,752 KB
testcase_03 AC 16 ms
7,880 KB
testcase_04 AC 16 ms
7,708 KB
testcase_05 AC 15 ms
7,704 KB
testcase_06 AC 16 ms
7,740 KB
testcase_07 AC 16 ms
7,788 KB
testcase_08 AC 16 ms
7,780 KB
testcase_09 AC 16 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
t=[True]*10
for _ in range(n):
    a,b,c,d,s=input().split()
    a=int(a);b=int(b);c=int(c);d=int(d)
    x=[]
    if s=='NO':
        x=[True]*10
        x[a]=x[b]=x[c]=x[d]=False
    else:
        x=[False]*10
        x[a]=x[b]=x[c]=x[d]=True
    for i in range(10):
        t[i]&=x[i]
print(t.index(True))
0