結果

問題 No.305 鍵(2)
ユーザー steek79steek79
提出日時 2015-11-27 23:38:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 24,288 KB
平均クエリ数 85.69
最終ジャッジ日時 2023-09-23 22:05:16
合計ジャッジ時間 1,547 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
24,240 KB
testcase_01 AC 36 ms
24,084 KB
testcase_02 AC 36 ms
23,568 KB
testcase_03 AC 34 ms
23,916 KB
testcase_04 AC 36 ms
23,400 KB
testcase_05 AC 36 ms
23,748 KB
testcase_06 AC 32 ms
24,288 KB
testcase_07 AC 35 ms
23,904 KB
testcase_08 AC 36 ms
23,520 KB
testcase_09 AC 35 ms
23,508 KB
testcase_10 AC 36 ms
23,520 KB
testcase_11 AC 35 ms
24,120 KB
testcase_12 AC 35 ms
23,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

code = []
for i in xrange(10):
    digits = []
    for j in xrange(10):
        ans = j * 10**i
        print str(ans).zfill(10)
        sys.stdout.flush()
        X = raw_input().split()
        X = int(X[0])
        if X == 10:
            exit()
        else:
            digits.append(X)
    n = digits.index(max(digits))
    code.append(n)

code = code[::-1]
code = map(str, code)
print ''.join(code)
0