"Informatics Stars" Online Contests - 2011-2014 |
Start: Oct.20.2012 at 10:00:00 AM
Finish: Oct.20.2012 at 03:00:00 PM
The contest is finished!
• Contest scoreboard
|
Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Prepared by Ibrahim Mesecan.
Modular Conversion
Shqip
Get two numbers n and m, and then calculate where n represents a number in base ten and m represents the base to convert.
Write a program that converts the given number n into base m and shows the result.
For example:
(17)10 = (122)3
(17)10 = (10001)2
Input specification
There will be two numbers in the input file where 0 ≤ n < 100000 and 2 ≤ m < 10
Output specification
Calculate and show the result followed by an endline. The output number will not have more than 20 digits in it.
Input 1 b>
td>
|
Input 2 b>
td>
|
17 3
td>
|
17 2
td>
|
Output 1 b> td>
| Output 2 b> td>
tr>
122
td>
|
10001 td> |
|
Для отправки решений необходимо выполнить вход.
|