結果

問題 No.305 鍵(2)
ユーザー TawaraTawara
提出日時 2015-11-29 20:47:25
言語 Python2
(2.7.18)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 6,560 KB
実行使用メモリ 24,312 KB
平均クエリ数 92.62
最終ジャッジ日時 2023-09-23 22:12:09
合計ジャッジ時間 1,580 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
23,952 KB
testcase_01 AC 38 ms
24,312 KB
testcase_02 AC 38 ms
24,024 KB
testcase_03 AC 38 ms
23,628 KB
testcase_04 AC 38 ms
23,328 KB
testcase_05 AC 38 ms
24,192 KB
testcase_06 AC 35 ms
24,300 KB
testcase_07 AC 39 ms
23,472 KB
testcase_08 AC 38 ms
23,532 KB
testcase_09 AC 39 ms
24,264 KB
testcase_10 AC 39 ms
24,048 KB
testcase_11 AC 38 ms
23,460 KB
testcase_12 AC 39 ms
23,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
ans = [-1]*10
for i in xrange(10):
	tmp = 0
	out="0"*i+"%d"+"0"*(9-i)
	for j in xrange(10):
		print out % j
		sys.stdout.flush()
		X,L = raw_input().split()
		X = int(X)
		if X == 10: quit()
		if X > tmp: tmp = X; ans[i] = j
print "".join(map(str,ans))
0