結果

問題 No.1133 キムワイプイーター
ユーザー TnaTna
提出日時 2022-07-13 16:24:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 637 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,972 KB
実行使用メモリ 16,092 KB
最終ジャッジ日時 2023-09-07 02:28:37
合計ジャッジ時間 5,235 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,872 KB
testcase_01 AC 15 ms
7,824 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 198 ms
13,196 KB
testcase_10 AC 314 ms
16,092 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 260 ms
15,100 KB
testcase_14 AC 219 ms
13,632 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 16 ms
7,864 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 15 ms
7,904 KB
testcase_27 WA -
testcase_28 AC 15 ms
7,876 KB
testcase_29 AC 15 ms
7,856 KB
testcase_30 WA -
testcase_31 AC 15 ms
7,840 KB
testcase_32 AC 15 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""
NG
"""
n, m = [int(x) for x in input().split()]
moves = list(input())
maps = []
for i in range(n+1):
    tmp = []
    for j in range(n+1):
        tmp.append("1")
    maps.append(tmp)
# print(maps)

x = y = 0
maps[n-y][n-x] = "0"
for move in moves:
    if move == "U":
        y = y + 1
    elif move == "R":
        x = x + 1
    elif move == "L":
        x = x - 1
    elif move == "D":
        y = y - 1
    maps[n-y][n-x] = "0"
# print(maps)

# maps = map(str, maps)
for i in range(n+1):
    # print(map_row)
    print(" ".join(maps[i]))
    # for map_d in map_row:
    #     # print(map_d)
    #     print("".join(str(map_row)))
0