Ответ:
mas = input().split()
N = int(mas[0])
B = int(mas[1])
mas = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
def func(N, B):
if N // B == 0:
print(mas[N], end="")
return
func(N//B, B)
print(mas[N % B], end = "")
func(N, B)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
mas = input().split()
N = int(mas[0])
B = int(mas[1])
mas = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
def func(N, B):
if N // B == 0:
print(mas[N], end="")
return
func(N//B, B)
print(mas[N % B], end = "")
func(N, B)