結果

問題 No.1133 キムワイプイーター
ユーザー pluto77pluto77
提出日時 2020-07-29 10:14:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 270 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 1,105 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 9,872 KB
最終ジャッジ日時 2023-09-11 07:10:36
合計ジャッジ時間 5,079 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,896 KB
testcase_01 AC 15 ms
7,848 KB
testcase_02 AC 92 ms
8,800 KB
testcase_03 AC 202 ms
9,228 KB
testcase_04 AC 204 ms
9,252 KB
testcase_05 AC 206 ms
9,480 KB
testcase_06 AC 195 ms
9,460 KB
testcase_07 AC 138 ms
8,944 KB
testcase_08 AC 85 ms
8,680 KB
testcase_09 AC 174 ms
9,248 KB
testcase_10 AC 270 ms
9,872 KB
testcase_11 AC 245 ms
9,492 KB
testcase_12 AC 207 ms
9,336 KB
testcase_13 AC 241 ms
9,568 KB
testcase_14 AC 185 ms
9,400 KB
testcase_15 AC 124 ms
8,908 KB
testcase_16 AC 87 ms
8,760 KB
testcase_17 AC 21 ms
8,676 KB
testcase_18 AC 31 ms
8,840 KB
testcase_19 AC 21 ms
8,548 KB
testcase_20 AC 28 ms
8,572 KB
testcase_21 AC 31 ms
8,848 KB
testcase_22 AC 31 ms
8,724 KB
testcase_23 AC 15 ms
7,768 KB
testcase_24 AC 16 ms
7,760 KB
testcase_25 AC 21 ms
8,544 KB
testcase_26 AC 15 ms
7,772 KB
testcase_27 AC 15 ms
7,952 KB
testcase_28 AC 15 ms
7,880 KB
testcase_29 AC 16 ms
7,772 KB
testcase_30 AC 32 ms
8,736 KB
testcase_31 AC 16 ms
7,764 KB
testcase_32 AC 16 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1133
n,m=map(int,input().split())
s=input()
l=[[1 for i in range(n+1)] for j in range(n+1)]
l[n][0]=0
x,y=0,0
for e in s:
 if e=='U':
  y+=1
 elif e=='D':
  y-=1
 elif e=='R':
  x+=1
 elif e=='L':
  x-=1
 l[n-y][x]=0
for res in l:
 print(*res)
0