結果

問題 No.3069 Invisible Speedrun
ユーザー ks2m
提出日時 2025-03-21 22:06:29
言語 Java
(openjdk 23)
結果
AC  
実行時間 413 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 2,318 ms
コンパイル使用メモリ 79,316 KB
実行使用メモリ 64,360 KB
平均クエリ数 585.15
最終ジャッジ日時 2025-03-21 22:06:56
合計ジャッジ時間 27,066 ms
ジャッジサーバーID
(参考情報)
judge3 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 80
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int n2 = n * 2;
		for (int i = 0; i < n2; i++) {
			System.out.println("D");
			int v = sc.nextInt();
			if (v != 0) {
				break;
			}

			System.out.println("R");
			v = sc.nextInt();
			if (v != 0) {
				break;
			}
		}
		sc.close();
	}
}
0