Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 320 Bytes

File metadata and controls

21 lines (17 loc) · 320 Bytes

Any Base Subtraction

Easy


  1. You are given a base b.
  2. You are given two numbers n1 and n2 of base b.
  3. You are required to subtract n1 from n2 and print the value.

Example 1:

Input:  8 1 100
Output:  77

Constraints:

2 <= b <= 10
0 <= n1 <= 256
0 <= n2 <= 256