結果

問題 No.305 鍵(2)
ユーザー yuppe19 😺
提出日時 2016-07-06 13:19:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,736 KB
平均クエリ数 86.69
最終ジャッジ日時 2024-07-17 00:00:48
合計ジャッジ時間 2,047 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python3
def puts(arr):
    res = ''.join(map(str, arr))
    print(res, flush=True)
    a, b = input().split()
    return a, b

res = [0] * 10

for i in range(10):
    arr = []
    for j in range(10):
        res[i] = j
        a, b = puts(res)
        if int(a) == 10:
            exit(0)
        arr.append((a, j))
    res[i] = max(arr)[1]
0