HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


028. 50521 - Pound to Grams

Guest
• Discussion of problem (2)

Volume problems

• 51033 - Sum of the series
• 51027 - Download Percentage
• 51028 - Isosceles Triangles
• 50799 - OSHEE Electric Bill
• 51031 - Convert from Hex to Dec
• 51030 - Number of Right Triangles
• 005. 50797 - Nr of Missing Guests
• 007. 50280 - Division
• 028. 50521 - Pound to Grams
• 034. 50502 - Welcome Andi - 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair

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.

Pound to grams

Question:
Write a program that converts a weight given in Stone, Pound and Ounce to Tones, Kgs and grams.

  • 1 Tone is 1000 Kgs
  • 1 Kg is 1000 grams
  • 1 Stone is 14 Pounds
  • 1 Pound is 16 Ounce
  • 1 Ounce is 28.3495 grams

Input specification
You will be given 3 integers: Stone, Pound and Ounce; where 0 ≤ Stone ≤ 100, 0 ≤ Pound ≤ 13, and 0 ≤ Ounce ≤ 15.

Output specification
Show three integers: Tones, kgs, and grams. Round the grams to the nearest integer.

 Sample Input I     Sample Output I   
 5 2 7
 0 32 857
Для отправки решений необходимо выполнить вход.

www.contester.ru