結果
問題 | No.2228 Creeping Ghost |
ユーザー | maron8676 |
提出日時 | 2023-02-24 22:43:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 468 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 86,920 KB |
実行使用メモリ | 145,120 KB |
最終ジャッジ日時 | 2023-10-11 06:38:39 |
合計ジャッジ時間 | 3,605 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 95 ms
71,240 KB |
testcase_01 | AC | 94 ms
71,736 KB |
testcase_02 | AC | 94 ms
71,572 KB |
testcase_03 | AC | 95 ms
71,380 KB |
testcase_04 | AC | 94 ms
71,716 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
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))