Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб. 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
|
Для отправки решений необходимо выполнить вход.
|