結果

問題 No.2228 Creeping Ghost
ユーザー tree_splaytree_splay
提出日時 2023-02-24 22:34:18
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 457 bytes
コンパイル時間 2,075 ms
コンパイル使用メモリ 198,452 KB
実行使用メモリ 5,180 KB
最終ジャッジ日時 2023-10-11 06:34:04
合計ジャッジ時間 3,196 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

#define INF 1234567890
#define ll long long

int N;

int main()
{
	ios::sync_with_stdio(0); cin.tie(0);
	cin.exceptions(ios::badbit | ios::failbit);
	cin >> N;
	
	string s;
	s += "RDRD";

	s += "RDRD";
	s += "ULDU";
	s += "ULUL";
	s += "RDLR";

	string t;
	t += "RDRD";
	t += "ULDU";
	t += "ULUL";
	t += "RDLR";

	while((int)s.size() < N)
		s += t;

	cout << string(s.begin(), s.begin()+N) << "\n";
	return 0;
}
0