Question: Offline - 1 for A 2 , B 2 , C 2 Problem 1 Description Given four digits in any number system, show the minimum

Offline-1 for A2, B2, C2
Problem 1
Description
Given four digits in any number system, show the minimum four-digit number that can be
constructed with them.
Input/Output Format
The first line of input contains an integer b, denoting the base of the number system. The next
line contains four space-separated characters denoting the digits in the b-based number
system.
Print a single line indicating the minimum four-digit number, in the b-based number system,
that can be constructed with the given digits.
You can safely assume that no input will violate the following constraints:
2<= b <=30, all the digits will be valid in the b-based number system (for example, in a
20-based number system the digits can be 0-9 and A-J (uppercase only).
By C program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!