結果
| 問題 |
No.1133 キムワイプイーター
|
| ユーザー |
_matumo_
|
| 提出日時 | 2020-08-04 18:48:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 313 ms / 2,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 13,184 KB |
| 最終ジャッジ日時 | 2024-09-14 19:47:49 |
| 合計ジャッジ時間 | 6,212 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 31 |
ソースコード
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)
_matumo_