結果

問題 No.1133 キムワイプイーター
ユーザー _matumo__matumo_
提出日時 2020-08-04 18:48:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 298 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 10,660 KB
最終ジャッジ日時 2023-10-12 21:30:00
合計ジャッジ時間 6,026 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,844 KB
testcase_01 AC 16 ms
7,876 KB
testcase_02 AC 95 ms
8,712 KB
testcase_03 AC 201 ms
9,688 KB
testcase_04 AC 211 ms
9,408 KB
testcase_05 AC 224 ms
9,672 KB
testcase_06 AC 212 ms
9,288 KB
testcase_07 AC 148 ms
9,128 KB
testcase_08 AC 90 ms
8,800 KB
testcase_09 AC 193 ms
9,508 KB
testcase_10 AC 298 ms
10,660 KB
testcase_11 AC 262 ms
9,892 KB
testcase_12 AC 233 ms
9,728 KB
testcase_13 AC 266 ms
10,028 KB
testcase_14 AC 198 ms
9,448 KB
testcase_15 AC 138 ms
9,364 KB
testcase_16 AC 93 ms
8,708 KB
testcase_17 AC 22 ms
8,564 KB
testcase_18 AC 31 ms
8,764 KB
testcase_19 AC 21 ms
8,608 KB
testcase_20 AC 27 ms
8,576 KB
testcase_21 AC 30 ms
8,760 KB
testcase_22 AC 31 ms
8,764 KB
testcase_23 AC 16 ms
7,884 KB
testcase_24 AC 16 ms
7,836 KB
testcase_25 AC 20 ms
8,552 KB
testcase_26 AC 15 ms
7,852 KB
testcase_27 AC 15 ms
7,936 KB
testcase_28 AC 16 ms
7,840 KB
testcase_29 AC 15 ms
7,796 KB
testcase_30 AC 31 ms
8,860 KB
testcase_31 AC 15 ms
7,764 KB
testcase_32 AC 16 ms
7,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
a=[[1]*(n+1)for _ in range(n+1)]
a[n][0]=0
y,x=n,0
for c in input():
	if c=='U':y-=1
	if c=='D':y+=1
	if c=='L':x-=1
	if c=='R':x+=1
	a[y][x]=0
for b in a:
    print(*b)
0