LoginSignup
0
0

More than 1 year has passed since last update.

paizaラーニング「i番目の出力 1 Python3編」

Posted at

私の解答

K,L = map(int,input().split())
li = [[1, 2, 3, 4], [10, 100, 0, 5], [8, 1, 3, 8], [15, 34, 94, 25]]
print(li[K-1][L-1])

解答例とほぼ同じでした!!

解答例

values = input().split()
K = int(values[0])
L = int(values[1])

li = [[1, 2, 3, 4], [10, 100, 0, 5], [8, 1, 3, 8], [15, 34, 94, 25]]

print(li[K - 1][L - 1])
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