結果

問題 No.2228 Creeping Ghost
ユーザー hiro71687khiro71687k
提出日時 2023-03-04 11:00:29
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 4,375 ms
コンパイル使用メモリ 262,768 KB
実行使用メモリ 5,476 KB
最終ジャッジ日時 2023-10-18 04:13:57
合計ジャッジ時間 5,351 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;
using ld=long double;
ld pie=3.14159265359;
ll inf=10010010010010010;
ll mod=998244353;
int main(){
    ll n;
    cin >> n;
    string s="RLRD";
    string ss="DUDRRLRUUDULLRLD";
    string t=s;
    while (t.size()<n)
    {
        t+=ss;
    }
    for (ll i = 0; i < n; i++)
    {
        cout << t[i];
    }
    
}
0