結果

問題 No.305 鍵(2)
ユーザー roiti46roiti46
提出日時 2015-11-27 22:45:16
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 501 bytes
コンパイル時間 641 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 24,288 KB
平均クエリ数 17.46
最終ジャッジ日時 2023-09-23 06:43:39
合計ジャッジ時間 5,998 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

ans = ""
for i in xrange(10):
    for j in xrange(10):
        tmp = "0" * (10 - i - 1) + str(j) + ans
        print tmp
        sys.stdout.flush()
        mx, k = 0, -1
        hit, res = raw_input().split()
        if res == "unlocked":
            exit()
        hit = int(hit)
        if hit > mx:
            mx = hit
            k = j 
    ans = str(k) + ans
print ans
res = raw_input()
0