結果

問題 No.305 鍵(2)
ユーザー steek79steek79
提出日時 2015-11-27 23:29:24
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 412 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 24,312 KB
平均クエリ数 85.85
最終ジャッジ日時 2023-09-23 06:48:45
合計ジャッジ時間 2,590 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 40 ms
24,228 KB
testcase_02 AC 40 ms
24,216 KB
testcase_03 AC 40 ms
24,276 KB
testcase_04 AC 41 ms
23,772 KB
testcase_05 AC 40 ms
24,312 KB
testcase_06 RE -
testcase_07 AC 39 ms
23,328 KB
testcase_08 AC 40 ms
24,048 KB
testcase_09 AC 39 ms
23,568 KB
testcase_10 AC 39 ms
24,060 KB
testcase_11 AC 41 ms
23,784 KB
testcase_12 AC 41 ms
23,796 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])
        digits.append(X)
        #print digits
    n = digits.index(max(digits))
    code.append(n)

#code = [1,2,3,4,5,6,7,8,9,0]
code = code[::-1]
code = map(str, code)
print ''.join(code)
0