結果

問題 No.305 鍵(2)
ユーザー matsu7874matsu7874
提出日時 2015-11-29 16:05:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 496 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,928 KB
実行使用メモリ 24,552 KB
平均クエリ数 45.23
最終ジャッジ日時 2023-09-23 08:11:21
合計ジャッジ時間 1,906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
24,420 KB
testcase_01 AC 43 ms
23,824 KB
testcase_02 AC 41 ms
24,060 KB
testcase_03 AC 43 ms
24,016 KB
testcase_04 AC 43 ms
24,300 KB
testcase_05 AC 44 ms
24,340 KB
testcase_06 RE -
testcase_07 AC 45 ms
23,960 KB
testcase_08 AC 43 ms
23,940 KB
testcase_09 AC 43 ms
24,196 KB
testcase_10 AC 42 ms
24,356 KB
testcase_11 AC 43 ms
23,940 KB
testcase_12 AC 42 ms
24,552 KB
権限があれば一括ダウンロードができます

ソースコード

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) == 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