結果

問題 No.305 鍵(2)
ユーザー HIROPON87069639HIROPON87069639
提出日時 2016-02-22 22:50:59
言語 Python2
(2.7.18)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 554 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 24,420 KB
平均クエリ数 92.69
最終ジャッジ日時 2023-09-23 08:55:36
合計ジャッジ時間 3,096 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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
        tmp1 += 1
0