結果

問題 No.305 鍵(2)
ユーザー matsu7874matsu7874
提出日時 2015-11-29 16:05:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 522 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 10,924 KB
実行使用メモリ 24,360 KB
平均クエリ数 45.15
最終ジャッジ日時 2023-09-23 22:11:20
合計ジャッジ時間 1,727 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,788 KB
testcase_01 AC 39 ms
23,776 KB
testcase_02 AC 38 ms
23,772 KB
testcase_03 AC 38 ms
23,844 KB
testcase_04 AC 38 ms
23,960 KB
testcase_05 AC 41 ms
24,180 KB
testcase_06 AC 37 ms
24,136 KB
testcase_07 AC 40 ms
24,360 KB
testcase_08 AC 40 ms
24,356 KB
testcase_09 AC 39 ms
24,028 KB
testcase_10 AC 39 ms
24,200 KB
testcase_11 AC 39 ms
24,144 KB
testcase_12 AC 41 ms
24,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
answer = ['0']*10

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

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) == 10:
            exit()
        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