Sort by

recency

|

372 Discussions

|

  • + 0 comments
    import math
    def lowestTriangle(trianglebase, area):
        a=math.ceil(area*2/trianglebase)
        return a
    first_multiple_input = input().rstrip().split()
    trianglebase = int(first_multiple_input[0])
    area = int(first_multiple_input[1])
    height = lowestTriangle(trianglebase, area)
    print(height)
    
  • + 0 comments

    This problem clearly focuses on applying the basic triangle area formula and rounding up to ensure the minimum integer height meets the condition, which keeps the logic clean and efficient. The step-by-step explanation feels well-structured, much like tronc management support helps keep complex processes organized without overcomplicating them.

  • + 0 comments

    For Python3 Platform

    import math
    
    def lowestTriangle(trianglebase, area):
        return math.ceil((2 * area)/trianglebase)
    
    b, a = map(int, input().split())
    
    height = lowestTriangle(b, a)
    
    print(height)
    
  • + 0 comments

    Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work. Slot Domino88

  • + 0 comments

    easy python solution:

    def lowestTriangle(trianglebase, area): h = 0 while True: temp_area = 0.5*trianglebase*h if temp_area >= area: return h h+= 1