結果

問題 No.2228 Creeping Ghost
ユーザー AngrySadEightAngrySadEight
提出日時 2022-12-18 14:50:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 2,094 ms
コンパイル使用メモリ 74,632 KB
実行使用メモリ 48,160 KB
最終ジャッジ日時 2024-04-29 01:26:39
合計ジャッジ時間 5,451 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
48,060 KB
testcase_01 AC 133 ms
47,304 KB
testcase_02 AC 136 ms
47,328 KB
testcase_03 AC 156 ms
47,924 KB
testcase_04 AC 152 ms
47,936 KB
testcase_05 AC 177 ms
47,496 KB
testcase_06 AC 187 ms
48,160 KB
testcase_07 AC 204 ms
48,072 KB
testcase_08 AC 169 ms
47,496 KB
testcase_09 AC 172 ms
47,712 KB
testcase_10 AC 166 ms
47,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int n=scan.nextInt();
    StringBuffer buf = new StringBuffer();
    buf.append("RRRDDLLLDD");
    for (int i = 0; i < 100000; i++){
    	buf.append("RRRRUUUULLLLDDDD");
    }
    String str = buf.toString();
    System.out.println(str.substring(0, n));
  }
}
0