ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Задачи со всего света > задача:


210. 50369 - Base Conversion

Гость
• Обсуждение задачи (1)

Задачи сборника

• 066. 50523 - Total Tax to Pay
• 070. 50534 - Top Trading Company
• 095. 50453 - The Cubic Difference
• 125. 50578 - Numrat Prim Mersenne
• 132. 50474 - Sum of Two Primes
• 165. 50577 - Numrat perfekte dhe ...
• 190. 50533 - Contacts List
• 200. 50454 - What day is it?
• 210. 50369 - Base Conversion
• 250. 50385 - The 3n + 1 problem
• 260. 50493 - n-digit kth Prime Number
• 50307 - Palindromes
• 50305 - John's Tasks
• 002. 50428 - Three Times
• 010. 50582 - Numri i shifrave
• 035. 50467 - Random Numbers
• 062. 50390 - Total Salary Paid

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by Ibrahim Mesecan.

Convert a from a base into another base

Question:
Given a string that represents a base X number, convert it to equivalent string in base Y. For example: "FE" in base 16 (Hexadecimal) is "254" in base 10 (Decimal) and "11111110" in base 2 (binary).

Input specification
You are first given two integers base1, and base2 which is 2 ≤ (base1, base2) ≤ 36. Then in the following line, you are given a string which is composed of digits (0..9) and/or upper case English letters (A..Z), and the decimal number is in the limit of 263-1.
Note: Letter 'A' represents 10, etc.

Output specification
Show one string, the converted number.

 Sample Input I     Sample Output I   
 16 26
 FDC8
 3I2K


Для отправки решений необходимо выполнить вход.

www.contester.ru