Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: agnes_chan

Problemset: Base Converter

Language: python

Time: 0.014 second

Submitted On: 2026-05-08 08:54:48

d , b = map(int,input().split())
def cov(n):
    if n:
        cov(n//b)
        print(n%b,end='')
if d: cov(d)
else: print(0)