結果

問題 No.305 鍵(2)
ユーザー HIROPON87069639
提出日時 2016-02-22 22:52:48
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 577 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 7,068 KB
実行使用メモリ 25,616 KB
平均クエリ数 90.38
最終ジャッジ日時 2024-07-16 08:37:33
合計ジャッジ時間 3,565 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys
Klist = [0,0,0,0,0,0,0,0,0,0]
print "".join(map(str, Klist))
sys.stdout.flush()
tmp1, tmp2 = raw_input().split()
tmp1 = int(tmp1)
if tmp2 == "unlocked":
    exit()

for i in range(0, 10):
    for j in range(0, 10):
        Klist[i] = j
        tmp3 = tmp1
        print "".join(map(str, Klist))
        sys.stdout.flush()
        tmp1, tmp2 = raw_input().split()
        tmp1 = int(tmp1)
        if tmp2 == "unlocked":
            exit()
        if tmp3 < tmp1:
            break
        Klist[i] = 0
        if i != 9:
            tmp1 += 1
0