+ 1
Hello friends, could someone help me to solve this code?
2 Antworten
+ 2
import math
h = int(input())
w = int(input())
one = 60*2
door = w*h*12*2
print (math.ceil(door/one))
#copied
0
G'day Kelbis Hernandez I reckon the instructions in the Duct Tape challenge are a bit vague and a bit wrong.
The vagueness is that the door values are given in feet. This is cleared up if we read the ! explanation balloon.
The wrongness is that the duct tape roll is specifically said to be 60 feet *2 inches when it is 60 inches *2 inches (== 5 feet *2 inches).
The tricky part after getting the length and conversion correct is to round up if the division is more than a complete roll. I did it in C differently to the code that ℂ𝕙𝕚𝕘𝕠𝕫𝕚𝕖 𝔸𝕟𝕪𝕒𝕖𝕛𝕚🇳🇬 has spammed into your question (please don't give whole answers, just hints or corrections).