結果

問題 No.305 鍵(2)
ユーザー lllllll88938494lllllll88938494
提出日時 2023-05-09 13:59:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 87,752 KB
平均クエリ数 101.62
最終ジャッジ日時 2023-08-17 06:37:04
合計ジャッジ時間 2,888 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
87,252 KB
testcase_01 AC 104 ms
87,464 KB
testcase_02 AC 104 ms
87,584 KB
testcase_03 AC 105 ms
87,140 KB
testcase_04 AC 101 ms
87,268 KB
testcase_05 AC 101 ms
87,708 KB
testcase_06 AC 95 ms
86,608 KB
testcase_07 AC 102 ms
87,752 KB
testcase_08 AC 100 ms
87,368 KB
testcase_09 AC 101 ms
87,480 KB
testcase_10 AC 100 ms
86,788 KB
testcase_11 AC 102 ms
87,164 KB
testcase_12 AC 101 ms
87,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ans=[-1]*10
for i in range(10):
    t= [str(i) for _ in range(10)]
    print(''.join(t),flush=True)
    x,s=input().split()
    if s == 'unlocked':
        exit()
    x=int(x)
    for j in range(10):
        t[j] = str((i+1)%10)
        print(''.join(t),flush=True)
        y,s=input().split()
        if s == 'unlocked':
            exit()
        y=int(y)
        
        if x>y:     
            ans[j] = str(i)
        x = y

            
# print(ans)            
print(''.join(ans),flush=True)
z,s=input().split()

            
0