0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Paiza問題集】データセットメニュー/文字列の配列

Posted at

Paiza問題集

Pythonで回答

データセットメニュー/文字列の配列

Step01 とても大きな数値の入力

Step01
"""
とても大きな数値の入力
https://paiza.jp/works/mondai/data_structure/data_structure__string_step1
"""

print(input())

Step02 とても小さな値の入力

Step02
"""
とても小さな値の入力
https://paiza.jp/works/mondai/data_structure/data_structure__string_step2
"""

print(input())

Final問題 文字列の配列

Final問題
"""
文字列の配列
https://paiza.jp/works/mondai/data_structure/data_structure__string_boss

プログラムの動作
縦Hマス、横Wマスの迷路S
マスが#の時:壁
マスが.の時:道
maze[r-1][c-1]が壁かどうかを判定する
"""

# 数字を受け取る
H, W, r, c = map(int, (input().split()))
maze = list(input() for i in range(H))

# 壁か判定
print("Yes") if maze[r-1][c-1] == "#" else print("No")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?