結果
問題 |
No.24 数当てゲーム
|
ユーザー |
|
提出日時 | 2016-11-16 18:16:42 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-11-26 02:25:31 |
合計ジャッジ時間 | 880 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
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