結果

問題 No.305 鍵(2)
ユーザー yuki2006yuki2006
提出日時 2015-11-27 19:11:06
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 368 bytes
コンパイル時間 711 ms
コンパイル使用メモリ 77,836 KB
実行使用メモリ 95,100 KB
平均クエリ数 40.77
最終ジャッジ日時 2023-09-23 06:39:47
合計ジャッジ時間 3,741 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 102 ms
92,064 KB
testcase_02 RE -
testcase_03 AC 101 ms
92,364 KB
testcase_04 AC 102 ms
92,148 KB
testcase_05 AC 158 ms
95,100 KB
testcase_06 AC 98 ms
92,136 KB
testcase_07 RE -
testcase_08 AC 102 ms
92,244 KB
testcase_09 AC 104 ms
92,328 KB
testcase_10 AC 104 ms
91,768 KB
testcase_11 AC 103 ms
92,576 KB
testcase_12 AC 104 ms
92,436 KB
権限があれば一括ダウンロードができます

ソースコード

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
    elif ans > count:
        fixed += 1
    count = ans
0