結果

問題 No.305 鍵(2)
ユーザー matsu7874
提出日時 2015-11-29 16:03:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 452 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,608 KB
平均クエリ数 45.31
最終ジャッジ日時 2024-07-16 08:00:30
合計ジャッジ時間 2,011 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
answer = ['0']*10

print('0'*10)
sys.stdout.flush()
zero, lock = input().split()
zero = int(zero)

for i in range(10):
    for j in range(1,10):
        print('0'*i+str(j)+'0'*(9-i))
        sys.stdout.flush()
        x, lock = input().split()
        if int(x) > zero:
            answer[i] = str(j)
            break
        elif int(x) < zero:
            break

print(''.join(answer))
sys.stdout.flush()
x, lock = input().split()
exit()
0