HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


51031 - Convert from Hex to Dec

Guest
• Review clarifications (1)

Volume problems

• 50292 - Average of 4 Marks
• 50799 - OSHEE Electric Bill
• 51029 - Buy Three Items
• 51034 - Area of 3 Shapes
• 51032 - Triangle Property
• 51033 - Sum of the series
• 51027 - Download Percentage
• 51028 - Isosceles Triangles
• 51031 - Convert from Hex to Dec
• 51030 - Number of Right Triangles
• 51007 - Function f(x)
• 50579 - Pentagonal Numbers
• 001. 51153 - A+B.
• 002. 50348 - Area and Perimeter of ...
• 003. 50349 - Area of a Triangle
• 004. 50350 - Fahrenheit to Celsius
• 005. 50797 - Nr of Missing Guests

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.
Question by Ibrahim Mesecan.

Convert from Hex to Dec

Question: Read a 3-digit hexadecimal number, print the decimal equivalent.

Input specification: You will be given 3 space separated hexadecimal digits (0..9 and A..F).

Output specification: Show one number.

Sample Input I
3 A 0
Sample Input II
0 C D
Sample Output I
928
Sample Output II
205

Explanation: for the first sample: 3 * 256 + 10 * 16 + 0 = 928.

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

www.contester.ru