結果

問題 No.1133 キムワイプイーター
ユーザー matriematrie
提出日時 2020-12-20 00:28:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 11,960 KB
実行使用メモリ 18,160 KB
最終ジャッジ日時 2023-10-21 09:51:39
合計ジャッジ時間 6,509 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,092 KB
testcase_01 AC 29 ms
10,092 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 210 ms
15,168 KB
testcase_10 AC 316 ms
18,160 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 281 ms
17,264 KB
testcase_14 AC 212 ms
15,480 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 46 ms
10,700 KB
testcase_22 WA -
testcase_23 AC 29 ms
10,092 KB
testcase_24 AC 30 ms
10,092 KB
testcase_25 WA -
testcase_26 AC 29 ms
10,092 KB
testcase_27 AC 29 ms
10,092 KB
testcase_28 AC 29 ms
10,092 KB
testcase_29 AC 29 ms
10,092 KB
testcase_30 WA -
testcase_31 AC 29 ms
10,092 KB
testcase_32 AC 30 ms
10,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
s=list(input())
f=[[1]*(n+1) for _ in [0]*(n+1)]
x,y,f[0][0]=0,0,0
for d in s:
	if   d=='U': y-=1
	elif d=='R': x+=1
	elif d=='L': x-=1
	elif d=='D': y+=1
	f[y][x]=0
for a in reversed(f): print(*a)
0