結果

問題 No.2228 Creeping Ghost
ユーザー tsugutsugutsugutsugu
提出日時 2023-02-24 22:17:17
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 1,837 ms
コンパイル使用メモリ 163,904 KB
実行使用メモリ 5,244 KB
最終ジャッジ日時 2023-10-11 06:24:15
合計ジャッジ時間 3,424 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

string x = "DDDRRRUUULLL";

int main() {
    int t;
    cin >> t;
    int a = t / 12, b = t % 12;
    string ans = "";
    while(a--) {
        ans += x;
    }
    ans += x.substr(0, b);
    cout << ans << endl;
}
0