Board information acquisition Python 3 edition (A rank level up set)

banmen.rb



h,w,n = [int(i) for i in input().split()]

bord = [list(input()) for i in range(h)]


for i in range(n):
    a,b = [int(i) for i in input().split()]
    print(bord[a][b])

Recommended Posts

Board information acquisition Python 3 edition (A rank level up set)
Set up a test SMTP server in Python.
Set up a simple SMTP server in Python
Set up a Python development environment on Marvericks
A * algorithm (Python edition)
How to set up a Python environment using pyenv
Set up a Python development environment with Sublime Text 2
[Vagrant] Set up a simple API server with python
Set up a Python development environment with Visual Studio Code
Set Up for Mac (Python)
Set up Python environment on CentOS
Try to set up a Vim test environment quite seriously (for Python)
Set up a local web server in 30 seconds using python 3's http.server
Set up a Samba server with Docker
Map rent information on a map with python
Set up a mail server using Twisted
Run Python code on A2019 Community Edition