結果

問題 No.305 鍵(2)
ユーザー niyarinniyarin
提出日時 2016-05-31 18:43:47
言語 Python2
(2.7.18)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 541 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 12,420 KB
最終ジャッジ日時 2023-09-24 00:02:19
合計ジャッジ時間 6,635 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

l = list("0000000000")
while True:
    print "".join(l)
    x,state = raw_input().split(" ")
    x = int(x)
    if (state == "unlocked"):
        break

    new_l = []
    for i in range(10):
        _l = [] + l
        _l[i] = str((int(l[i]) + 1 ) % 10)
        print "".join(_l)
        y,state = raw_input().split(" ")
        y = int(y)
        if (x == y ):
            new_l.append(str((int(_l[i]) + 1 ) % 10 ))
        elif (x < y ):
            new_l.append(_l[i])
        else:
            new_l.append(l[i])
    l = new_l
        
0