結果

問題 No.2228 Creeping Ghost
ユーザー jianglyjiangly
提出日時 2023-02-24 21:47:40
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 1,936 ms
コンパイル使用メモリ 197,692 KB
実行使用メモリ 5,188 KB
最終ジャッジ日時 2023-10-11 06:05:18
合計ジャッジ時間 2,987 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>

using i64 = long long;

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    
    int T;
    std::cin >> T;
    
    std::string ans;
    ans += "RRDD";
    
    while (ans.size() < T) {
        ans += "RRDDLURLLLUURDLR";
    }
    ans.resize(T);
    
    std::cout << ans << "\n";
    
    return 0;
}
0