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])
Go to list of users who liked
More than 3 years have passed since last update.
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])
Register as a new user and use Qiita more conveniently
Go to list of users who liked