結果
問題 |
No.2228 Creeping Ghost
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:25:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,540 KB |
実行使用メモリ | 56,444 KB |
最終ジャッジ日時 | 2025-06-12 19:26:15 |
合計ジャッジ時間 | 2,203 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 1 WA * 6 |
ソースコード
T = int(input()) if T == 3: print("DRU") else: s = 'RDRDRURUL' if T <= len(s): print(s[:T]) else: cycle = 'RDRDRURUL' cycle_length = len(cycle) base = cycle * (T // cycle_length + 1) print(base[:T])