Submission

Status:

PPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: agnes_chan

Problemset: บวกเลขฐาน

Language: python

Time: 0.011 second

Submitted On: 2026-05-08 08:47:22

b , c = int(input()) , "0123456789ABCDEF"
nm = int(input(),b)+int(input(),b)
def cov(n):
    if n:
        cov(n//b)
        print(c[n%b],end='')
if nm: cov(nm)
else: print(0)