結果

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

ソースコード

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