結果

問題 No.2228 Creeping Ghost
ユーザー umezoumezo
提出日時 2023-02-25 00:09:40
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 1,979 ms
コンパイル使用メモリ 199,272 KB
実行使用メモリ 5,184 KB
最終ジャッジ日時 2023-10-11 07:08:54
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
5,068 KB
testcase_01 AC 4 ms
4,964 KB
testcase_02 AC 4 ms
5,060 KB
testcase_03 AC 4 ms
5,060 KB
testcase_04 AC 4 ms
5,176 KB
testcase_05 AC 13 ms
5,048 KB
testcase_06 AC 8 ms
5,060 KB
testcase_07 AC 13 ms
5,028 KB
testcase_08 AC 13 ms
4,948 KB
testcase_09 AC 9 ms
5,060 KB
testcase_10 AC 9 ms
5,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;
 
int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  string s="RRDLRLRU";
  string t="RLRDDUDLLRLUUDUR";
  while(s.size()<1000100) s+=t;
  int n;
  cin>>n;
  rep(i,n) cout<<s[i];
  cout<<endl;
    
  return 0;
}
0