結果

問題 No.305 鍵(2)
コンテスト
ユーザー lllllll88938494
提出日時 2023-05-09 13:59:42
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 533 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 197 ms
コンパイル使用メモリ 85,504 KB
実行使用メモリ 72,864 KB
平均クエリ数 101.62
最終ジャッジ日時 2026-05-20 13:35:12
合計ジャッジ時間 2,699 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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