結果

問題 No.305 鍵(2)
ユーザー brthyyjpbrthyyjp
提出日時 2022-03-31 13:48:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 381 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 87,860 KB
平均クエリ数 86.69
最終ジャッジ日時 2023-09-24 03:02:52
合計ジャッジ時間 2,738 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
87,336 KB
testcase_01 AC 101 ms
87,720 KB
testcase_02 AC 105 ms
87,584 KB
testcase_03 AC 100 ms
86,932 KB
testcase_04 AC 98 ms
87,188 KB
testcase_05 AC 102 ms
87,236 KB
testcase_06 AC 93 ms
87,056 KB
testcase_07 AC 100 ms
87,012 KB
testcase_08 AC 102 ms
87,696 KB
testcase_09 AC 100 ms
87,320 KB
testcase_10 AC 100 ms
87,320 KB
testcase_11 AC 103 ms
87,272 KB
testcase_12 AC 103 ms
87,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def query(A):
    A = [str(a) for a in A]
    print(''.join(A), flush=True)
    c, v = map(str, input().split())
    if v == 'unlocked':
        exit()
    return int(c)

A = [0]*10
for i in range(10):
    B = [-1]*10
    for j in range(10):
        A[i] = j
        c = query(A)
        B[j] = c
    m = min(B)
    for j in range(10):
        if B[j] == m+1:
            A[i] = j
0