Question: Offline - 1 for A 2 , B 2 , C 2 Problem 1 Description Given four digits in any number system, show the minimum
Offline for A B C
Problem
Description
Given four digits in any number system, show the minimum fourdigit number that can be
constructed with them.
InputOutput Format
The first line of input contains an integer b denoting the base of the number system. The next
line contains four spaceseparated characters denoting the digits in the bbased number
system.
Print a single line indicating the minimum fourdigit number, in the bbased number system,
that can be constructed with the given digits.
You can safely assume that no input will violate the following constraints:
b all the digits will be valid in the bbased number system for example, in a
based number system the digits can be and AJ uppercase only
By C program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
