본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 13410번 거꾸로 구구단

by 현장 2022. 2. 10.

-코드

n, k = map(int, input().split())
arr = []
for i in range(1, k + 1):
    r = str(n * i)[::-1]
    arr.append(int(r))
print(max(arr))