結果

問題 No.305 鍵(2)
ユーザー HIROPON87069639HIROPON87069639
提出日時 2016-02-22 22:59:22
言語 Python2
(2.7.18)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 581 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 24,360 KB
平均クエリ数 66.62
最終ジャッジ日時 2023-09-23 23:11:57
合計ジャッジ時間 1,470 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
23,412 KB
testcase_01 AC 31 ms
23,520 KB
testcase_02 AC 32 ms
23,652 KB
testcase_03 AC 31 ms
24,360 KB
testcase_04 AC 30 ms
24,036 KB
testcase_05 AC 31 ms
23,544 KB
testcase_06 AC 27 ms
24,048 KB
testcase_07 AC 32 ms
23,424 KB
testcase_08 AC 30 ms
24,276 KB
testcase_09 AC 33 ms
23,628 KB
testcase_10 AC 31 ms
23,364 KB
testcase_11 AC 30 ms
23,676 KB
testcase_12 AC 29 ms
24,036 KB
権限があれば一括ダウンロードができます

ソースコード

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