結果
問題 | No.24 数当てゲーム |
ユーザー |
|
提出日時 | 2015-07-15 17:45:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 872 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-08 08:05:32 |
合計ジャッジ時間 | 1,150 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#coding=UTF-8 N=int(input()) R=list(range(0,N,1)) taro=list(range(0,N,1)) for idx in range(0,N,1): mojir=input() hyo=mojir.split(" ") A=int(hyo[0]) B=int(hyo[1]) C=int(hyo[2]) D=int(hyo[3]) taro[idx]=(A,B,C,D) R[idx]=hyo[4] guess=list(range(0,10,1)) for idx in range(0,10,1): guess[idx]=True hicacu=list(range(0,10,1)) for idx in range(0,N,1): if R[idx]=="NO": for idy in range(0,10,1): if idy in taro[idx]: hicacu[idy]=False else: hicacu[idy]=True else: for idy in range(0,10,1): if idy in taro[idx]: hicacu[idy]=True else: hicacu[idy]=False for idy in range(0,10,1): guess[idy]=guess[idy] and hicacu[idy] for idy in range(0,10,1): if guess[idy]==True: print(idy)