結果

問題 No.305 鍵(2)
ユーザー tabataba
提出日時 2016-04-15 02:40:03
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 335 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 6,720 KB
実行使用メモリ 24,480 KB
平均クエリ数 85.85
最終ジャッジ日時 2023-09-23 10:23:26
合計ジャッジ時間 2,049 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 38 ms
24,384 KB
testcase_02 AC 39 ms
23,832 KB
testcase_03 AC 40 ms
23,640 KB
testcase_04 AC 38 ms
23,856 KB
testcase_05 AC 39 ms
23,412 KB
testcase_06 RE -
testcase_07 AC 39 ms
24,036 KB
testcase_08 AC 39 ms
23,616 KB
testcase_09 AC 39 ms
24,480 KB
testcase_10 AC 41 ms
23,616 KB
testcase_11 AC 39 ms
24,288 KB
testcase_12 AC 40 ms
24,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def maxindex(x):
	return max(enumerate(x),key=lambda x:x[1])[0]
def q(s):
	print s
	sys.stdout.flush()
	return int(raw_input().split()[0])
a=[[]for i in[0]*10]
for i in range(10):
	for j in range(10):
		s="{0:0>10}".format(j*(10**i))
		r=q(s)
		a[i]+=[r]
#print a
a=[maxindex(i)for i in a][::-1]
print "".join(`i`for i in a)
0