結果

問題 No.2228 Creeping Ghost
ユーザー publfl2
提出日時 2023-02-24 22:13:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 538 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 48,640 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 05:35:52
合計ジャッジ時間 1,385 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <vector>

char check0[110]="RRRDDDDL";
char check1[110]="LLUU";
char check2[110]="UURR";
char check3[110]="RRDD";
char check4[110]="DDLL";
std::vector<char> V;
int main()
{
	for(int i=0;i<8;i++) V.push_back(check0[i]);
	for(int j=1;j<=100000;j++)
	{
		for(int k=0;k<4;k++) V.push_back(check1[k]);
		for(int k=0;k<4;k++) V.push_back(check2[k]);
		for(int k=0;k<4;k++) V.push_back(check3[k]);
		for(int k=0;k<4;k++) V.push_back(check4[k]);
	}
	
	int a;
	scanf("%d",&a);
	for(int i=0;i<a;i++) printf("%c",V[i]);
}
0