結果

問題 No.24 数当てゲーム
ユーザー gahougahou
提出日時 2016-11-16 18:16:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 6,104 KB
最終ジャッジ日時 2023-08-17 07:31:06
合計ジャッジ時間 739 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,852 KB
testcase_01 AC 12 ms
5,928 KB
testcase_02 AC 12 ms
6,104 KB
testcase_03 AC 12 ms
6,080 KB
testcase_04 AC 11 ms
5,876 KB
testcase_05 AC 11 ms
5,940 KB
testcase_06 AC 11 ms
5,956 KB
testcase_07 AC 11 ms
6,044 KB
testcase_08 AC 11 ms
5,856 KB
testcase_09 AC 11 ms
6,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())
l=[0]*10
for _ in xrange(N):
  a,b,c,d,r=raw_input().split()
  if r=="NO":
    l[int(a)]=-1
    l[int(b)]=-1
    l[int(c)]=-1
    l[int(d)]=-1
  else:
    dic={}
    dic[int(a)]=True
    dic[int(b)]=True
    dic[int(c)]=True
    dic[int(d)]=True
    for i in xrange(10):
      if i not in dic:
        l[i]=-1
for i in xrange(10):
  if l[i]==0: print i
0