結果
問題 | No.2228 Creeping Ghost |
ユーザー | maron8676 |
提出日時 | 2023-02-24 22:46:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 195 ms / 2,000 ms |
コード長 | 464 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 86,660 KB |
実行使用メモリ | 144,840 KB |
最終ジャッジ日時 | 2023-10-11 06:39:38 |
合計ジャッジ時間 | 2,953 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 94 ms
71,364 KB |
testcase_01 | AC | 95 ms
71,300 KB |
testcase_02 | AC | 96 ms
71,364 KB |
testcase_03 | AC | 95 ms
71,372 KB |
testcase_04 | AC | 95 ms
71,368 KB |
testcase_05 | AC | 195 ms
144,552 KB |
testcase_06 | AC | 144 ms
114,704 KB |
testcase_07 | AC | 192 ms
144,840 KB |
testcase_08 | AC | 190 ms
144,504 KB |
testcase_09 | AC | 138 ms
114,428 KB |
testcase_10 | AC | 140 ms
114,280 KB |
ソースコード
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) index = index % len(loop_steps) ans.append(loop_steps[index]) print(''.join(ans))