結果

問題 No.3069 Invisible Speedrun
ユーザー norioc
提出日時 2025-03-22 07:13:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 214 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 82,660 KB
実行使用メモリ 94,268 KB
平均クエリ数 585.15
最終ジャッジ日時 2025-03-22 07:13:54
合計ジャッジ時間 13,890 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 80
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import cycle


def query(d: str) -> int:
    print(d)
    res = int(input())
    return res


N = int(input())
for d in cycle(['D', 'R']):
    res = query(d)
    match res:
        case 1 | -1:
            break
0