結果

問題 No.2228 Creeping Ghost
ユーザー publfl2publfl2
提出日時 2023-02-24 22:13:16
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 538 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 48,076 KB
実行使用メモリ 4,520 KB
最終ジャッジ日時 2023-10-11 06:21:59
合計ジャッジ時間 1,488 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
4,396 KB
testcase_01 AC 7 ms
4,520 KB
testcase_02 AC 7 ms
4,400 KB
testcase_03 AC 6 ms
4,480 KB
testcase_04 AC 7 ms
4,396 KB
testcase_05 AC 16 ms
4,396 KB
testcase_06 AC 12 ms
4,472 KB
testcase_07 AC 16 ms
4,388 KB
testcase_08 AC 16 ms
4,392 KB
testcase_09 AC 12 ms
4,436 KB
testcase_10 AC 12 ms
4,440 KB
権限があれば一括ダウンロードができます

ソースコード

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