結果

問題 No.305 鍵(2)
ユーザー tabataba
提出日時 2016-04-15 02:42:59
言語 Python2
(2.7.18)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 6,636 KB
実行使用メモリ 24,420 KB
平均クエリ数 85.69
最終ジャッジ日時 2023-09-23 23:47:34
合計ジャッジ時間 1,421 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
24,288 KB
testcase_01 AC 33 ms
23,388 KB
testcase_02 AC 38 ms
24,408 KB
testcase_03 AC 33 ms
23,436 KB
testcase_04 AC 30 ms
23,568 KB
testcase_05 AC 31 ms
24,384 KB
testcase_06 AC 28 ms
24,420 KB
testcase_07 AC 31 ms
24,048 KB
testcase_08 AC 32 ms
24,036 KB
testcase_09 AC 34 ms
24,072 KB
testcase_10 AC 31 ms
23,436 KB
testcase_11 AC 31 ms
23,676 KB
testcase_12 AC 31 ms
23,664 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)
		if r==10:
			exit()
		a[i]+=[r]
#print a
a=[maxindex(i)for i in a][::-1]
print "".join(`i`for i in a)
0