結果

問題 No.2228 Creeping Ghost
コンテスト
ユーザー HIcoder
提出日時 2024-10-12 19:28:07
言語 C++17
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
TLE  
実行時間 -
コード長 638 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 601 ms
コンパイル使用メモリ 139,388 KB
実行使用メモリ 13,168 KB
最終ジャッジ日時 2026-07-05 23:08:51
合計ジャッジ時間 4,690 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 1 TLE * 1 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<string>
#include<queue>
#include<vector>
#include<cassert>
#include<random>
#include<set>
#include<map>
#include<cassert>
#include<unordered_map>
#include<bitset>
#include<numeric>
#include<algorithm>
using namespace std;
typedef long long ll;
const int inf=1<<30;
const ll INF=1LL<<62;
typedef pair<int,ll> P;
typedef pair<int,P> PP; 
const ll MOD=998244353;

int main(){
    int T;
    cin>>T;

    string ans="RRRDDLLLDD";
    if(T<ans.size()){
        cout<<ans.substr(0,T)<<endl;
        return 0;
    }

    while(ans.size()<T){
        ans=ans+"RRRDDLLLDD";
    }
   
    cout<<ans.substr(0,T)<<endl;
}
0