Problem Name: Mysterious Quadrilateral

Problem setter: Mb. Abdul Alim

Limits 1s, 512 MB

To solve this problem, we need to first understand the relationship between the angles in a quadrilateral.

In any quadrilateral, the sum of its interior angles is always 360 degrees.

Let's denote the four angles of the quadrilateral as ∠A, ∠B, ∠C, and ∠D.


  • ∠A = X * Y

  • ∠B = X * 2 * Y

  • ∠C = ∠D - 17°

  • ∠D = N

We know that ∠A + ∠B + ∠C + ∠D = 360°.

∠C = N - 17°

Substituting the given expressions for each angle, we get:

(X * Y) + (X * 2 * Y) + ( ∠D - 17°) + ∠D = 360°

Simplify the equation to find the value of Y.

Now, ∠B = X*2*Y. X is given as our input.

Now, calculate the value of ∠B using the given value of X and Y.

Finally, round the result to two decimal places and output it in the required format.


Time Complexity: O(1)

Space complexity: O(1)


91% Solution Ratio
TanbirTopEarliest, 3M ago
adnanakib2017Fastest, 0.0s
adnanakib2017Lightest, 5.2 MB
Labib.899366Shortest, 105B
Toph uses cookies. By continuing you agree to our Cookie Policy.