結果

問題 No.305 鍵(2)
ユーザー MitI_7MitI_7
提出日時 2015-11-29 14:15:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 453 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 24,420 KB
平均クエリ数 69.85
最終ジャッジ日時 2023-09-23 08:10:30
合計ジャッジ時間 2,072 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 42 ms
23,788 KB
testcase_02 AC 43 ms
23,356 KB
testcase_03 AC 41 ms
23,432 KB
testcase_04 AC 44 ms
23,808 KB
testcase_05 AC 43 ms
24,204 KB
testcase_06 AC 39 ms
23,964 KB
testcase_07 AC 43 ms
24,000 KB
testcase_08 AC 43 ms
24,420 KB
testcase_09 AC 44 ms
24,036 KB
testcase_10 AC 43 ms
23,448 KB
testcase_11 AC 41 ms
24,048 KB
testcase_12 AC 42 ms
23,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def func(n):
    s = "0" * 10
    print(s)
    base, _ = input().split()

    for i in range(1, 10):
        print(s[:n] + str(i) + s[n + 1:])
        x, _ = input().split()
        if int(x) > int(base):
            return i

    return 0


def main():
    print("0" * 10)
    if "unlocked" in input():
        return
    
    ans = ""
    for i in range(10):
        ans += str(func(i))
    print(ans)
    
    
if __name__ == '__main__':
    main()
0