結果

問題 No.305 鍵(2)
ユーザー yuki2006
提出日時 2015-11-27 19:13:55
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 220 ms / 2,000 ms
コード長 385 bytes
コンパイル時間 441 ms
コンパイル使用メモリ 76,800 KB
実行使用メモリ 93,896 KB
平均クエリ数 44.08
最終ジャッジ日時 2024-07-16 20:42:54
合計ジャッジ時間 2,890 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def out(nums):
    print "".join(map(str, nums))
    sys.stdout.flush()
    n, mes = raw_input().split()
    return int(n)


i = 0
nums = [0] * 10
fixed = 0
count = out(nums)
while count < 10:
    nums[fixed] += 1
    ans = out(nums)
    if ans < count:
        nums[fixed] -= 1
        fixed += 1
        ans += 1
    elif ans > count:
        fixed += 1
    count = ans
0