結果

問題 No.24 数当てゲーム
ユーザー takakintakakin
提出日時 2020-03-29 09:30:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,888 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-08-30 18:38:41
合計ジャッジ時間 1,120 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,772 KB
testcase_01 AC 17 ms
7,684 KB
testcase_02 AC 17 ms
7,764 KB
testcase_03 AC 16 ms
7,748 KB
testcase_04 AC 16 ms
7,960 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,832 KB
testcase_07 AC 16 ms
7,772 KB
testcase_08 AC 16 ms
7,776 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
A=[[str(i) for i in input().split()] for _ in range(n)]
Ans=[True]*10
for i in range(n):
  if A[i][4]=="NO":
    for j in range(4):
      Ans[int(A[i][j])-1]=False
  else:
    S=set()
    for j in range(4):
      S.add(int(A[i][j])-1)
    for j in range(10):
      if j not in S:
        Ans[j]=False

for i in range(10):
  if Ans[i]:
    print(i+1)
    break
0