結果

問題 No.24 数当てゲーム
ユーザー omicoder2017omicoder2017
提出日時 2017-10-27 14:05:56
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 727 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,064 KB
最終ジャッジ日時 2023-08-14 02:50:45
合計ジャッジ時間 998 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,020 KB
testcase_01 AC 11 ms
5,928 KB
testcase_02 AC 12 ms
6,024 KB
testcase_03 AC 11 ms
6,064 KB
testcase_04 AC 11 ms
6,028 KB
testcase_05 AC 11 ms
5,920 KB
testcase_06 AC 11 ms
6,040 KB
testcase_07 AC 11 ms
5,864 KB
testcase_08 AC 11 ms
5,852 KB
testcase_09 AC 12 ms
5,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
nonum=[]
ans=[]

taro = []
for i in range(N):
    taro.append(0)
for i in range(N):
    taro[i]=raw_input()

for i in range(N):
    if taro[i][8:10] == "NO":
        for j in range(0,7,2):
            if taro[i][j] not in nonum:
                nonum.append(taro[i][j])
            else:
                pass
    else:
        ans.append(taro[i][:7])
for i in range(10):
    i = str(i)
    if i in nonum:
        continue
    else:
        if ans == []:
            answer = i
            break
        else:
            pass
        
        for j in range(len(ans)):
            if i not in ans[j]:
                break
            else:
                answer = i
                continue

print answer
0