Incircle of an equilateral triangle
Statement
Goal
You need to paint the area of the incircle of an equilateral triangle of side L meters. The paint supplier provides you a can of paint to cover A m². How many cans of paint do you need to paint the area of the incircle?The radius of the incircle can be found from the formula:
Input
A the area, in square meters, you can paint with a single can of paint.
L the side, in meters, of the equilateral triangle.
L the side, in meters, of the equilateral triangle.
Output
c quantity of cans of paint you use.
Constraints
0 < A < 50
0 < l < 100
0 < l < 100
Example
Input
10 1
Output
1
Game modes
Fastest, Shortest
Test cases
Tiny triangle Test
Input
10
1
Output
1
Validator 1 Validator
Input
1
2
Output
2
Tiny cans Test
Input
1
3
Output
3
Validator 2 Validator
Input
2
6
Output
5
Big can Test
Input
10
10
Output
3
Validator 3 Validator
Input
20
20
Output
6
Lost of cans Test
Input
1
15
Output
59
Validator 4 Validator
Input
1
14
Output
52
Solution language
Solution
Stub generator input