Back
Close

Metric to imperial height

Statement
You must convert <<metric>> heights (cm) to <<imperial>> heights (ft and in). Some useful values:   cm → feet = 0.0328084   cm → inches = 0.39370079

Input description
<<Ligne 1:>> An integer [[cm]] to convert.

Output description
<<Ligne 1:>> The height in [[feet]] and the rest in [[inches]] rounded

Constraints
0 ≤ [[cm]] ≤ 3045 0 ≤ [[feet]] ≤ 99 0 ≤ [[inches]] ≤ 11

Game modes

Test cases
Test 1m80 Test
Input
180
Output
5 11

Validator 1m79 Validator
Input
179
Output
5 10

Test 1m60 Test
Input
160
Output
5 3

Validator 1m62 Validator
Input
162
Output
5 4

Test 2m10 Test
Input
210
Output
6 11

Validator 2m09 Validator
Input
209
Output
6 10

Test 25m Test
Input
2500
Output
82 0

Validator 25m01 Validator
Input
2501
Output
82 1

Corner case test 30cm Test
Input
30
Output
1 0

Corner case validator 60cm Validator
Input
60
Output
2 0

Solution language

Solution

Stub generator input