## A Base Problem

View as PDF

Points: 5 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

You are given integers and , which are in base . Please print out the sum, and product of and in base .

#### Input Specification

The first line will contain the integer .

The second line will contain the integer .

The third line will contain the integer .

and will each contain at most digits, and each digit will be in the range . and will not contain leading zeros.

#### Output Specification

On the first line, output the sum of and .

On the second line, output the product of and .

No further constraints.

#### Sample Input

10
3
5

#### Sample Output

8
15

• commented on Oct. 2, 2022, 11:50 a.m. edit 3

oops (edited)

• commented on March 10, 2020, 1:54 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on Jan. 20, 2020, 12:55 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on Jan. 18, 2020, 10:04 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.