結果
問題 |
No.2228 Creeping Ghost
|
ユーザー |
![]() |
提出日時 | 2022-12-18 14:50:29 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 179 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 2,851 ms |
コンパイル使用メモリ | 78,256 KB |
実行使用メモリ | 48,292 KB |
最終ジャッジ日時 | 2024-11-17 23:27:08 |
合計ジャッジ時間 | 5,105 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
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)); } }