結果
| 問題 |
No.2228 Creeping Ghost
|
| コンテスト | |
| ユーザー |
maron8676
|
| 提出日時 | 2023-02-24 22:43:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 468 bytes |
| コンパイル時間 | 907 ms |
| コンパイル使用メモリ | 82,116 KB |
| 実行使用メモリ | 141,228 KB |
| 最終ジャッジ日時 | 2024-09-13 05:51:48 |
| 合計ジャッジ時間 | 2,672 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 1 WA * 6 |
ソースコード
from collections import defaultdict, deque
from sys import stdin
readline = stdin.readline
def li():
return list(map(int, readline().split()))
first_steps = 'RRRDDDDL'
loop_steps = 'LLUUUURRRRDDDDLL'
T = int(input())
ans = []
for i in range(T):
if i < len(first_steps):
ans.append(first_steps[i])
else:
index = i - len(first_steps) - 1
index = index % len(loop_steps)
ans.append(loop_steps[index])
print(''.join(ans))
maron8676