結果

問題 No.1133 キムワイプイーター
ユーザー osrgy01osrgy01
提出日時 2021-06-24 14:18:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 373 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 10,804 KB
実行使用メモリ 10,688 KB
最終ジャッジ日時 2023-09-07 13:22:24
合計ジャッジ時間 6,555 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,772 KB
testcase_01 AC 16 ms
7,776 KB
testcase_02 AC 110 ms
8,648 KB
testcase_03 AC 250 ms
9,704 KB
testcase_04 AC 248 ms
9,264 KB
testcase_05 AC 256 ms
9,656 KB
testcase_06 AC 247 ms
9,392 KB
testcase_07 AC 179 ms
9,088 KB
testcase_08 AC 107 ms
8,832 KB
testcase_09 AC 221 ms
9,320 KB
testcase_10 AC 373 ms
10,688 KB
testcase_11 AC 322 ms
9,784 KB
testcase_12 AC 254 ms
9,776 KB
testcase_13 AC 325 ms
9,864 KB
testcase_14 AC 233 ms
9,356 KB
testcase_15 AC 161 ms
9,204 KB
testcase_16 AC 106 ms
8,700 KB
testcase_17 AC 22 ms
8,596 KB
testcase_18 AC 31 ms
8,892 KB
testcase_19 AC 21 ms
8,544 KB
testcase_20 AC 28 ms
8,692 KB
testcase_21 AC 30 ms
8,768 KB
testcase_22 AC 32 ms
8,864 KB
testcase_23 AC 16 ms
7,788 KB
testcase_24 AC 16 ms
7,944 KB
testcase_25 AC 21 ms
8,652 KB
testcase_26 AC 16 ms
7,788 KB
testcase_27 AC 15 ms
7,868 KB
testcase_28 AC 16 ms
7,848 KB
testcase_29 AC 16 ms
7,788 KB
testcase_30 AC 32 ms
8,896 KB
testcase_31 AC 16 ms
7,840 KB
testcase_32 AC 16 ms
7,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
xy=[[1]*(n+1) for _ in range(n+1)]
y,x=n,0
xy[y][x]=0
d={i:j for i,j in zip('UDRL',[(-1,0),(1,0),(0,1),(0,-1)])}
for i in input():
    ty,tx=d[i]
    y+=ty;x+=tx
    xy[y][x]=0
[print(*i) for i in xy]
0