結果

問題 No.305 鍵(2)
コンテスト
ユーザー HIROPON87069639
提出日時 2016-02-22 22:59:22
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 581 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 300 ms
コンパイル使用メモリ 77,732 KB
最終ジャッジ日時 2025-12-03 19:28:59
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# -*- 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
        if j == 9:
            Klist[i] = 0
            tmp1 += 1
0